Merge branch '3.0'

This commit is contained in:
terrafrost 2023-04-21 15:39:47 -05:00
commit 928b5870b2

View File

@ -3932,7 +3932,10 @@ class SSH2
if (strlen($packet) != $sent) {
$this->bitmap = 0;
throw new RuntimeException("Only $sent of " . strlen($packet) . " bytes were sent");
$message = $sent === false ?
'Unable to write ' . strlen($packet) . ' bytes' :
"Only $sent of " . strlen($packet) . " bytes were sent";
throw new RuntimeException($message);
}
}