Backward compatibility with old PHP versions

Fix for PHP Parse error:  syntax error, unexpected '[' in /vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php on line 3558
This commit is contained in:
vgogolin 2021-10-29 18:19:20 -07:00 committed by terrafrost
parent 0539780a86
commit 1a942620b3

View File

@ -3572,7 +3572,7 @@ class Net_SSH2
$fdict = boolval($flg & 0x20);
$flevel = ($flg & 0xC0) >> 6;
$this->decompress_context = inflate_init(ZLIB_ENCODING_RAW, ['window' => $cinfo + 8]);
$this->decompress_context = inflate_init(ZLIB_ENCODING_RAW, array('window' => $cinfo + 8));
$payload = substr($payload, 2);
}
if ($this->decompress_context) {