From f1c41646878eff641f8ad066f2d94566a229119d Mon Sep 17 00:00:00 2001 From: ahoareau Date: Mon, 14 Jun 2021 11:52:43 +0200 Subject: [PATCH] fix exception thrown because of undefined constant with php7.4 --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index a5279857..c77f35e6 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -2940,7 +2940,7 @@ class SFTP extends SSH2 while (strlen($this->packet_buffer) < 4) { $temp = $this->get_channel_packet(self::CHANNEL, 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->packet_type = false;