Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1462 → Rev 1463

/trunk/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php
3446,7 → 3446,7
}
 
/**
* Returns all errors
* Returns all errors on the SFTP layer
*
* @return array
*/
3456,7 → 3456,7
}
 
/**
* Returns the last error
* Returns the last error on the SFTP layer
*
* @return string
*/
/trunk/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php
1116,6 → 1116,8
* Default Constructor.
*
* $host can either be a string, representing the host, or a stream resource.
* If $host is a stream resource then $port doesn't do anything, altho $timeout
* still will be used
*
* @param mixed $host
* @param int $port
1214,6 → 1216,8
? \WeakReference::create($this)
: $this;
 
$this->timeout = $timeout;
 
if (is_resource($host)) {
$this->fsock = $host;
return;
1222,7 → 1226,6
if (Strings::is_stringable($host)) {
$this->host = $host;
$this->port = $port;
$this->timeout = $timeout;
}
}
 
3531,6 → 3534,9
}
 
$start = microtime(true);
$sec = (int) floor($this->curTimeout);
$usec = (int) (1000000 * ($this->curTimeout - $sec));
stream_set_timeout($this->fsock, $sec, $usec);
$raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
 
if (!strlen($raw)) {
4724,8 → 4730,10
}
 
/**
* Returns all errors
* Returns all errors / debug messages on the SSH layer
*
* If you are looking for messages from the SFTP layer, please see SFTP::getSFTPErrors()
*
* @return string[]
*/
public function getErrors()
4734,8 → 4742,10
}
 
/**
* Returns the last error
* Returns the last error received on the SSH layer
*
* If you are looking for messages from the SFTP layer, please see SFTP::getLastSFTPError()
*
* @return string
*/
public function getLastError()