php.net |  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 snaps.php.net
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tomas dot rollo at grafton dot cz
New email:
PHP Version: OS:

 

 [2005-06-17 05:06 UTC] tomas dot rollo at grafton dot cz
Description:
------------
The compiled dll library for ssh2 PECL extension, which is available at http://snaps.php.net/win32/PECL_5_0/ was most probably compiled using an outdated version of libssh2 source.

This bug was technically solved in bug #3227 (URL http://pecl.php.net/bugs/bug.php?id=3227 ), 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('some.host', 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 ..

Patches

Pull Requests

History

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 host.somewhere.com:ssh       client.somewhere.com:4194     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] pollita@php.net
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 Dec 30 14:01:28 2024 UTC