mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-30 20:59:14 +00:00
SFTP: update for 3.0 branch
in 1.0 / 2.0 _get_channel_packet could return false even when the channel status was NET_SSH2_MSG_CHANNEL_DATA. in 3.0 it can't. where 1.0 / 2.0 returned false 3.0 now throws exceptions
This commit is contained in:
parent
d85417c6ec
commit
623bb39f1c
@ -3280,8 +3280,8 @@ class SFTP extends SSH2
|
|||||||
// SFTP packet type and data payload
|
// SFTP packet type and data payload
|
||||||
while ($tempLength > 0) {
|
while ($tempLength > 0) {
|
||||||
$temp = $this->get_channel_packet(self::CHANNEL, true);
|
$temp = $this->get_channel_packet(self::CHANNEL, true);
|
||||||
if (is_bool($temp)) {
|
if ($temp === true) {
|
||||||
if ($temp && $this->channel_status[self::CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) {
|
if ($this->channel_status[self::CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) {
|
||||||
$this->channel_close = true;
|
$this->channel_close = true;
|
||||||
}
|
}
|
||||||
$this->packet_type = false;
|
$this->packet_type = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user