From 3875d43cb488066bed7e1f4b74ab204daf5744ba Mon Sep 17 00:00:00 2001 From: Jude Rosario Date: Tue, 7 Nov 2017 13:48:18 +0530 Subject: [PATCH] Fix PHP 7 global variable rename As described here http://php.net/manual/en/migration70.incompatible.php --- phpseclib/Net/SFTP/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index a944d7f0..4ec80996 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -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; }