[Bug 501959] [NEW] ssh2_exec completely broken
greenmoss
ktyubuntu2 at yoderhome.com
Thu Dec 31 19:18:02 UTC 2009
Public bug reported:
Environment:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
$ dpkg -l libssh2-php
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================-=================-==================================================
ii libssh2-php 0.11.0-2 PHP Bindings for libssh2
Problem description:
I have a PHP script which attempts to do some SSH operations on another
host. This script was originally running on a Gentoo machine, also
version 0.11. It worked fine there, with code such as:
$ssh_connection = ssh2_connect($ssl_host, 22);
$stream = ssh2_exec($ssh_connection, "ls /etc/ssl/people/$user");
stream_set_blocking($stream, true);
$ssl_files = split("\n", stream_get_contents($stream));
On the Ubuntu host, the PHP script returns inconsistent results:
sometimes $ssl_files returns nothing, sometimes a few things, sometimes
everything. I get the same inconsistent results when trying several
variations: fetch from stream using fread, pass in pty (third argument)
as FALSE. At least one other person on the internet is also experiencing
this problem:
http://www.frostjedi.com/phpbb/viewtopic.php?f=46&t=13223
Please fix this; this whole package is next to useless unless ssh2_exec
works.
** Affects: php-ssh2 (Ubuntu)
Importance: Undecided
Status: New
--
ssh2_exec completely broken
https://bugs.launchpad.net/bugs/501959
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list