mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +00:00
Use get_called_class() if available.
This commit is contained in:
parent
73f961cb7d
commit
0f672dde52
@ -138,7 +138,8 @@ class Net_SFTP_Stream
|
|||||||
if (in_array($protocol, stream_get_wrappers(), true)) {
|
if (in_array($protocol, stream_get_wrappers(), true)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return stream_wrapper_register($protocol, __CLASS__);
|
$class = function_exists('get_called_class') ? get_called_class() : __CLASS__;
|
||||||
|
return stream_wrapper_register($protocol, $class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user