|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-11 14:52 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 00:00:01 2025 UTC |
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)