mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
- 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
This commit is contained in:
parent
ed39f723c9
commit
41784adbc7
@ -65,7 +65,7 @@
|
|||||||
* @author Jim Wigginton <terrafrost@php.net>
|
* @author Jim Wigginton <terrafrost@php.net>
|
||||||
* @copyright MMVII Jim Wigginton
|
* @copyright MMVII Jim Wigginton
|
||||||
* @license http://www.gnu.org/licenses/lgpl.txt
|
* @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
|
* @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
|
* 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.
|
* if a requisite function has been successfully executed. If not, an error should be thrown.
|
||||||
*
|
*
|
||||||
* @var Boolean
|
* @var Integer
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
var $bitmap = true;
|
var $bitmap = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Server Key Public Exponent
|
* 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)
|
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) {
|
if (!$this->fsock) {
|
||||||
user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE);
|
user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE);
|
||||||
return;
|
return;
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
* @author Jim Wigginton <terrafrost@php.net>
|
* @author Jim Wigginton <terrafrost@php.net>
|
||||||
* @copyright MMVII Jim Wigginton
|
* @copyright MMVII Jim Wigginton
|
||||||
* @license http://www.gnu.org/licenses/lgpl.txt
|
* @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
|
* @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
|
* 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.
|
* if a requisite function has been successfully executed. If not, an error should be thrown.
|
||||||
*
|
*
|
||||||
* @var Boolean
|
* @var Integer
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
var $bitmap = true;
|
var $bitmap = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Debug Info
|
* Debug Info
|
||||||
@ -512,7 +512,7 @@ class Net_SSH2 {
|
|||||||
$this->channel_extended_data_type_codes
|
$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) {
|
if (!$this->fsock) {
|
||||||
user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE);
|
user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user