From:             cshaulis at bear dot com
Operating system: Windows XP
PHP version:      5.2.3
PHP Bug Type:     Sockets related
Bug description:  ssh2_connect exits with error

Description:
------------
Calling ssh2_connect returns with an error in a situation where it should
not.

Reproduce code:
---------------
$con = ssh2_connect('pbptgemapp1', 22);
if (!$con) {
  print "Connection failed !";
}

Expected result:
----------------
I expect to see no output and to have a valid handle in $con


Actual result:
--------------
Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH
connection(-5): Unable to exchange encryption keys in C:\Program
Files\Apache Software Foundation\Apache2.2\htdocs\ssh2.php on line 5

Warning: ssh2_connect() [function.ssh2-connect]: Unable to connect to
pbptgemapp1 in C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\ssh2.php on line 5
Connection failed !

It may be necessary to use Windows to reproduce the problem. (I am using
Apache/2.2.4 (Win32) PHP/5.2.3)


-- 
Edit bug report at http://bugs.php.net/?id=41652&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41652&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41652&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41652&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41652&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41652&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41652&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41652&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41652&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41652&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41652&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41652&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41652&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41652&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41652&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41652&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41652&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41652&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41652&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41652&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41652&r=mysqlcfg

Reply via email to