mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-18 19:25:13 +00:00
fix exception thrown because of undefined constant with php7.4
This commit is contained in:
parent
9b1f8a260a
commit
f1c4164687
@ -2940,7 +2940,7 @@ class SFTP extends SSH2
|
|||||||
while (strlen($this->packet_buffer) < 4) {
|
while (strlen($this->packet_buffer) < 4) {
|
||||||
$temp = $this->get_channel_packet(self::CHANNEL, true);
|
$temp = $this->get_channel_packet(self::CHANNEL, true);
|
||||||
if ($temp === true) {
|
if ($temp === true) {
|
||||||
if ($this->channel_status[NET_SFTP_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