CloneSet285


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.998statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1151316
libraries/joomla/client/ftp.php
2151373
libraries/joomla/client/ftp.php
Clone Instance
1
Line Count
15
Source Line
1316
Source File
libraries/joomla/client/ftp.php

                // Wait for a response from the server, but timeout after the set time limit
                $endTime=  time()+  $this->_timeout;
                $this->_response = '';
                do {
                        $this->_response .= fgets($this->_conn ,4096);
                      } while (!preg_match("/^([0-9]{3})(-(.*"
                                           .                   CRLF
                                           .                        ")+\\1)? [^"
                                           .                                     CRLF
                                           .                                          "]+"
                                           .                                               CRLF
                                           .                                                    "\$/",$this->_response ,$parts)
                               &&                                                                                                  time()<  $endTime);
                // Catch a timeout or bad response
                if (! isset ($parts[1])) {
                        JError::raiseWarning('SOME_ERROR_CODE', 'JFTP::_verifyResponse: Timeout or unrecognized response while waiting for a response from the server', 'Server response: '
                                                                                                                                                                        .                   $this->_response);
                        return FALSE;
                      }
                // Separate the code from the message
                $this->_responseCode = $parts[1];
                $this->_responseMsg = $parts[0];


Clone Instance
2
Line Count
15
Source Line
1373
Source File
libraries/joomla/client/ftp.php

                // Wait for a response from the server, but timeout after the set time limit
                $endTime=  time()+  $this->_timeout;
                $this->_response = '';
                do {
                        $this->_response .= fgets($this->_conn ,4096);
                      } while (!preg_match("/^([0-9]{3})(-(.*"
                                           .                   CRLF
                                           .                        ")+\\1)? [^"
                                           .                                     CRLF
                                           .                                          "]+"
                                           .                                               CRLF
                                           .                                                    "\$/",$this->_response ,$parts)
                               &&                                                                                                  time()<  $endTime);
                // Catch a timeout or bad response
                if (! isset ($parts[1])) {
                        JError::raiseWarning('SOME_ERROR_CODE', 'JFTP::_passive: Timeout or unrecognized response while waiting for a response from the server', 'Server response: '
                                                                                                                                                                 .                   $this->_response);
                        return FALSE;
                      }
                // Separate the code from the message
                $this->_responseCode = $parts[1];
                $this->_responseMsg = $parts[0];


Clone AbstractionParameter Count: 1Parameter Bindings

// Wait for a response from the server, but timeout after the set time limit
$endTime=time()+$this->_timeout;
$this->_response ='';
do {
  $this->_response .=fgets($this->_conn ,4096);
} while (!preg_match("/^([0-9]{3})(-(.*"
                     . CRLF
                     . ")+\\1)? [^"
                     . CRLF
                     . "]+"
                     . CRLF
                     . "\$/",$this->_response ,$parts)
         && time()<$endTime);
// Catch a timeout or bad response
if (! isset ($parts[1])) {
  JError::raiseWarning('SOME_ERROR_CODE', [[#variable522e8780]],'Server response: '
                                                                . $this->_response);
  return FALSE;
}
// Separate the code from the message
$this->_responseCode =$parts[1];
$this->_responseMsg =$parts[0];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#522e8780]]
'JFTP::_passive: Timeout or unrecognized response while waiting for a response from the server' 
12[[#522e8780]]
'JFTP::_verifyResponse: Timeout or unrecognized response while waiting for a response from the server'