php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57969 binaries compiled on lower version cannot work on higher version of OS
Submitted: 2007-12-14 02:21 UTC Modified: 2009-01-10 14:13 UTC
From: prasankn at gmail dot com Assigned:
Status: Not a bug Package: ssh2 (PECL)
PHP Version: 5.2.1 OS: Mandriva 2007
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: prasankn at gmail dot com
New email:
PHP Version: OS:

 

 [2007-12-14 02:21 UTC] prasankn at gmail dot com
Description:
------------
Hi, 

I got the below error while trying to use ssh2_connect on Mandriva 7.1 OS.

Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH connection(-5): Unable to exchange encryption keys in /home/nprasanna/test/CVSManager/apache/cvsmanager/a.php on line 2

But the same libraries were working fine in RedHat 8.
I compiled all the libraries in RedHat 8 Machine and trying to run on higher versions.

I used libssh2-0.14
Apache 2047
ssh2 - 0.10

I used the following libraries:

libphp5.s0
ssh2.so
libssh2.so


Can anyone tell us how to fix this.

prasanna

Reproduce code:
---------------
<?php //phpinfo();
$conn=ssh2_connect("nprasanna",22);
var_dump($conn);
?>

Expected result:
----------------
Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH connection(-5): Unable to exchange encryption keys in /home/nprasanna/test/CVSManager/apache/cvsmanager/a.php on line 2

Actual result:
--------------
stream of type

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-10 14:13 UTC] mikesul@php.net
Thank you for taking the time to report a problem with the package.
Unfortunately you are not using a current version of the package -- 
the problem might already be fixed. Please download a new
version from http://pecl.php.net/packages.php

If you are able to reproduce the bug with one of the latest
versions, please change the package version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

Please also try the latest version of libssh2. The error is coming from there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC