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

From: Date: Fri, 06 Feb 2009 10:04:10 +0000
Subject: Req #15899 [NEW]: ssh2_exec should return exit status
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-6410@lists.php.net to get a copy of this message
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 --

« previous php.pear.webmaster (#6410) next »