From d26850e56fac25de6a2747aa995435f9d730ce32 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 24 Sep 2019 22:18:01 -0500 Subject: [PATCH 1/2] SSH2: fix PHP4 compatability issue --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 571e4c99..bf429f3d 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4488,7 +4488,7 @@ class Net_SSH2 * @return array * @access public */ - public function getServerAlgorithms() + function getServerAlgorithms() { $this->_connect(); From 72fe2540ab0ef93afe3473334c7696bcdf816aba Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 24 Sep 2019 22:21:07 -0500 Subject: [PATCH 2/2] readd visibility for 3.0 branch --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 19523ed7..f10201da 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4253,7 +4253,7 @@ class SSH2 * @return array * @access public */ - function getServerAlgorithms() + public function getServerAlgorithms() { $this->connect();