Fix PHP 7 global variable rename

As described here http://php.net/manual/en/migration70.incompatible.php
This commit is contained in:
Jude Rosario 2017-11-07 13:48:18 +05:30 committed by GitHub
parent ffcff461c4
commit 3875d43cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ class Net_SFTP_Stream
if ($host[0] == '$') { if ($host[0] == '$') {
$host = substr($host, 1); $host = substr($host, 1);
global $$host; global ${$host};
if (!is_object($$host) || get_class($$host) != 'Net_SFTP') { if (!is_object($$host) || get_class($$host) != 'Net_SFTP') {
return false; return false;
} }