From dac83d206ef64b46996ab1b2f268c8c972e24f9c Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 14 Jan 2022 18:31:19 -0600 Subject: [PATCH] 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) {