|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56418 SSH2 PECL extension dll compiled with old libssh2 source at
Submitted: 2005-06-17 05:06 UTC Modified: 2005-07-06 19:22 UTC
From: tomas dot rollo at grafton dot cz Assigned:
Status: Closed Package: ssh2 (PECL)
PHP Version: 5.0.3 OS: Windows NT/2K/XP
Private report: No CVE-ID: None
 [2005-06-17 05:06 UTC] tomas dot rollo at grafton dot cz
The compiled dll library for ssh2 PECL extension, which is available at was most probably compiled using an outdated version of libssh2 source.

This bug was technically solved in bug #3227 (URL ), and as it was promised to let the Win32 build team update the libssh2 source, it was marked as closed. But as I'm trying the dll every ~14 days it doesn't look like the info made it to the team :)

Reproduce code:
$connection = ssh2_connect('', 22);

Expected result:
The connection should be fully established

Actual result:
An error appears instead:
Warning: ssh2_connect(): Error starting up SSH connection(-2):
Timeout waiting for banner in ..
    Warning: ssh2_connect(): Unable to connect to X.X.X.X in ..


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-21 21:07 UTC] jrweir at gmail dot com
I get the same result with the same version of the library.

The host is invoking a sshd process and a connection is made after running ssh2_connect():
ps -aux:
root     24237  0.0  0.1  2592  940 ?        S    17:43   0:00 /usr/sbin/sshd

netstat -a:
tcp        0      0     ESTABLISHED 

However, these connections are not released until the webserver (the webserver running php which made the client connection) is restarted.

Hope this helps.
 [2005-07-06 19:22 UTC]
The build process for PECL/ssh2 has been updated to use a bundled copy of the libssh2 source (rather than a never-changing .lib).

The 5.1 bulid of php_ssh2.dll has been generated, the 5.0 and 4.4 versions are close behind.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 19:01:32 2024 UTC