From 20852adf78c2954a8827c71274f0c187be929b0c Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 18 Dec 2020 16:12:14 -0600 Subject: [PATCH] SSH2/Stream: stream_select needs to be able to access $fsock --- phpseclib/Net/SFTP/Stream.php | 2 +- phpseclib/Net/SSH2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index b4775e6b..89a0e59b 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -28,7 +28,7 @@ use phpseclib3\Net\SSH2; * @author Jim Wigginton * @access public */ -class Stream +class Stream extends SFTP { /** * SFTP instances diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index f7a099a8..4b63cd01 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -178,7 +178,7 @@ class SSH2 * @var object * @access private */ - private $fsock; + protected $fsock; /** * Execution Bitmap