Merge pull request #1828 from walkonthemarz/3.0

Revert back the commit https://github.com/phpseclib/phpseclib/commit/
This commit is contained in:
terrafrost 2022-08-13 22:43:52 -05:00 committed by GitHub
commit 9f03f6ea01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3315,7 +3315,10 @@ class SFTP extends SSH2
// SFTP packet type and data payload
while ($tempLength > 0) {
$temp = $this->get_channel_packet(self::CHANNEL, true);
if (is_bool($temp)) {
if ($temp === true) {
if ($this->channel_status[self::CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) {
$this->channel_close = true;
}
$this->packet_type = false;
$this->packet_buffer = '';
return false;