Page 1 of 1

ssh2 extension for XAMPP 1.7.7 gives segmentation fault

PostPosted: 08. December 2011 01:01
by pprabhud@cisco.com
I just downloaded and installed XAMPP 1.7.7. Then I downloaded, compiled and installed libssh2 1.3.0. Then I downloaded, compiled and installed ssh2 0.11.3 from PECL.

My OS is Red Hat Enterprise Linux 5.3 (i386).

However when I use ssh2_connect(), my script generates a segmentation fault.

Anyone seen this before or any ideas what I might be missing ?

TIA.

Re: ssh2 extension for XAMPP 1.7.7 gives segmentation fault

PostPosted: 08. December 2011 11:14
by JonB
It might be useful to post that error -

and... its unlikely (but remotely possible) that anyone running XAMMP has stumbled across that. :shock: (this is my 'karma' trap where I rely on the fact that when you make an assumptive statement, you will invariably be proven wrong. :mrgreen: )

After Googling on "ssh2 0.11.3 segmentation fault" - I'd say 'bug report' time with a code example.

Good Luck
8)

Re: ssh2 extension for XAMPP 1.7.7 gives segmentation fault

PostPosted: 08. December 2011 16:47
by pprabhud@cisco.com
Yes, I'd say bug report time too but with whom ? :?

There's not much to it in terms of error and code example but here goes -

Code: Select all
[root@localhost ~]# cat test.php
<?php
ssh2_connect('10.89.174.181');
?>
[root@localhost ~]#


Code: Select all
[root@localhost ~]# /opt/lampp/bin/php -f test.php
Segmentation fault
[root@localhost ~]#

Re: ssh2 extension for XAMPP 1.7.7 gives segmentation fault

PostPosted: 08. December 2011 19:23
by JonB
beep beep (insert roadrunner icon) :mrgreen:

http://pecl.php.net/package/ssh2/0.11.3

Good Luck
8)