From a312a1d4f05cee0580f5b35c01d9509d81415695 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 28 May 2017 09:44:38 -0500 Subject: [PATCH] SSH2: update a few function calls to work with renamed methods --- phpseclib/Net/SSH2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index f733ee78..da35a603 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3320,7 +3320,7 @@ class SSH2 public function disablePTY() { if ($this->in_request_pty_exec) { - $this->_close_channel(self::CHANNEL_EXEC); + $this->close_channel(self::CHANNEL_EXEC); $this->in_request_pty_exec = false; } $this->request_pty = false; @@ -3874,7 +3874,7 @@ class SSH2 case self::LOG_SIMPLE: return $this->message_number_log; case self::LOG_COMPLEX: - $log = $this->_format_log($this->message_log, $this->message_number_log); + $log = $this->format_log($this->message_log, $this->message_number_log); return PHP_SAPI == 'cli' ? $log : '
' . $log . '
'; default: return false;