mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-03 20:38:29 +00:00
SFTP: optimize call to parent login method for 2.0 branch
This commit is contained in:
parent
e02b93443c
commit
9c0ad2f1f4
@ -412,11 +412,7 @@ class SFTP extends SSH2
|
|||||||
*/
|
*/
|
||||||
function login($username)
|
function login($username)
|
||||||
{
|
{
|
||||||
$args = func_get_args();
|
if (!call_user_func_array('parent::login', 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user