From 41784adbc7e85fe8db01cb70043a4f2f9754da11 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sat, 30 May 2009 15:46:32 +0000 Subject: [PATCH] - attempting to connect to an invalid host yielded an inappropriate number of errors git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@36 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Net/SSH1.php | 8 ++++---- phpseclib/Net/SSH2.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index 09e52fc5..eb944ff4 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -65,7 +65,7 @@ * @author Jim Wigginton * @copyright MMVII Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: SSH1.php,v 1.10 2009-03-09 22:00:17 terrafrost Exp $ + * @version $Id: SSH1.php,v 1.11 2009-05-30 15:46:32 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -284,10 +284,10 @@ class Net_SSH1 { * The bits that are set reprsent functions that have been called already. This is used to determine * if a requisite function has been successfully executed. If not, an error should be thrown. * - * @var Boolean + * @var Integer * @access private */ - var $bitmap = true; + var $bitmap = 0; /** * The Server Key Public Exponent @@ -391,7 +391,7 @@ class Net_SSH1 { */ function Net_SSH1($host, $port = 22, $timeout = 10, $cipher = NET_SSH1_CIPHER_3DES) { - $this->fsock = fsockopen($host, $port, $errno, $errstr, $timeout); + $this->fsock = @fsockopen($host, $port, $errno, $errstr, $timeout); if (!$this->fsock) { user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE); return; diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index bdcbdcae..76bbeaa4 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.15 2009-05-23 14:42:17 terrafrost Exp $ + * @version $Id: SSH2.php,v 1.16 2009-05-30 15:41:39 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -132,10 +132,10 @@ class Net_SSH2 { * The bits that are set reprsent functions that have been called already. This is used to determine * if a requisite function has been successfully executed. If not, an error should be thrown. * - * @var Boolean + * @var Integer * @access private */ - var $bitmap = true; + var $bitmap = 0; /** * Debug Info @@ -512,7 +512,7 @@ class Net_SSH2 { $this->channel_extended_data_type_codes ); - $this->fsock = fsockopen($host, $port, $errno, $errstr, $timeout); + $this->fsock = @fsockopen($host, $port, $errno, $errstr, $timeout); if (!$this->fsock) { user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE); return;