mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 08:10:58 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
e02b93443c
@ -412,7 +412,11 @@ class SFTP extends SSH2
|
||||
*/
|
||||
function login($username)
|
||||
{
|
||||
if (!call_user_func_array(array(&$this, 'parent::login'), func_get_args())) {
|
||||
$args = func_get_args();
|
||||
$callback = version_compare(PHP_VERSION, '5.3.0') < 0 ?
|
||||
array(&$this, 'parent::login') :
|
||||
'parent::login';
|
||||
if (!call_user_func_array($callback, $args)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user