1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 09:09:39 +01:00

SSH2: use exceptions rather than user_error

This commit is contained in:
terrafrost 2021-11-11 19:39:49 -06:00
parent 15263f0c9c
commit 779e11e496

View File

@ -3335,8 +3335,8 @@ class SSH2
$raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
if (!strlen($raw)) {
user_error('No data received from server');
return false;
$this->bitmap = 0;
throw new ConnectionClosedException('No data received from server');
}
if ($this->decrypt) {