ssh2_exec completely broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-ssh2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Environment:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ dpkg -l libssh2-php
Desired=
| Status=
|/ Err?=(none)
||/ 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:
$stream = ssh2_exec(
$ssl_files = split("\n", 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://
Please fix this; this whole package is next to useless unless ssh2_exec works.
I am experiencing the same thing here. Is either hit or miss with ssh2_exec on Ubuntu 9.10. Totally useless.