mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +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)) {
|
||||
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