mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
Fix PHP 7 global variable rename
As described here http://php.net/manual/en/migration70.incompatible.php
This commit is contained in:
parent
ffcff461c4
commit
3875d43cb4
@ -197,7 +197,7 @@ class Net_SFTP_Stream
|
||||
|
||||
if ($host[0] == '$') {
|
||||
$host = substr($host, 1);
|
||||
global $$host;
|
||||
global ${$host};
|
||||
if (!is_object($$host) || get_class($$host) != 'Net_SFTP') {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user