From bf6787dd0770deff086e5740f82d3bf75c795487 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sat, 17 Oct 2009 03:49:16 +0000 Subject: [PATCH] - getLog() returns additional debug info git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@51 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Net/SSH2.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index aa494f4c..88aeac4c 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -41,7 +41,7 @@ * @author Jim Wigginton * @copyright MMVII Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: SSH2.php,v 1.23 2009-10-16 03:37:24 terrafrost Exp $ + * @version $Id: SSH2.php,v 1.24 2009-10-17 03:49:16 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -570,6 +570,14 @@ class Net_SSH2 { } $temp.= fgets($this->fsock, 255); } + + if (defined('NET_SSH2_LOGGING')) { + $this->message_number_log[] = '<-'; + $this->message_log[] = $temp; + $this->message_number_log[] = '->'; + $this->message_log[] = $this->identifier . "\r\n"; + } + $this->server_identifier = trim($temp); $this->debug_info = utf8_decode($this->debug_info);