mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-05 21:38:27 +00:00
Merge branch '3.0'
This commit is contained in:
commit
928b5870b2
@ -3932,7 +3932,10 @@ class SSH2
|
|||||||
|
|
||||||
if (strlen($packet) != $sent) {
|
if (strlen($packet) != $sent) {
|
||||||
$this->bitmap = 0;
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user