[PECL-BUG] Req #15899 [NEW]: ssh2_exec should return exit status

[email protected] ("clothohk at gmail dot com")
Newsgroups php.pear.webmaster
Message-ID <[email protected]>
From:             clothohk at gmail dot com
Operating system: CentOS 5
Package version:  
PHP version:      5.1.6
Package:          Bug System
Bug Type:         Feature/Change Request
Bug description:  ssh2_exec should return exit status

Description:
------------
PECL package: ssh2 0.11.0

I suggest that there should be a function like ssh_exec(),
which can return exit status of the executed command.



Reproduce code:
---------------
eg. 
list($status, $output) = ssh_exec_with_status("service httpd status");

Expected result:
----------------
$status will be 0 if httpd is running.
$output will be some output text.


-- 
Edit bug report at http://pecl.php.net/bugs/bug.php?id=15899&edit=1
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.