From dac83d206ef64b46996ab1b2f268c8c972e24f9c Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 14 Jan 2022 18:31:19 -0600 Subject: [PATCH 1/2] SSH2: fix pre-PHP 5.4 syntax error --- 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 87d07517..b7c1b920 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4209,7 +4209,7 @@ class Net_SSH2 $header = ''; } else { $this->regenerate_compression_context = false; - $this->compress_context = deflate_init(ZLIB_ENCODING_RAW, ['window' => 15]); + $this->compress_context = deflate_init(ZLIB_ENCODING_RAW, array('window' => 15)); $header = "\x78\x9C"; } if ($this->compress_context) { From 602760c5d8cbbfb6e8989fcd620ead9190c88ec8 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 14 Jan 2022 18:32:23 -0600 Subject: [PATCH 2/2] SSH2: CS change 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 8dca904b..12cb300f 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4075,7 +4075,7 @@ class SSH2 $header = ''; } else { $this->regenerate_compression_context = false; - $this->compress_context = deflate_init(ZLIB_ENCODING_RAW, array('window' => 15)); + $this->compress_context = deflate_init(ZLIB_ENCODING_RAW, ['window' => 15]); $header = "\x78\x9C"; } if ($this->compress_context) {