Bug #12937 Updated: exec does not return value if only one char
| From: | joey@php.net | Date: | Fri, 24 Aug 2001 02:49:24 +0000 |
| Subject: | Bug #12937 Updated: exec does not return value if only one char | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64213@lists.php.net to get a copy of this message | ||
ID: 12937
Updated by: joey
Reported By: simap@scruznet.com
Old Status: Open
Status: Closed
Bug Type: Output Control
Operating System: linux
PHP Version: 4.0.4pl1
New Comment:
This is fixed. Try a snapshot: http://snaps.php.net
Previous Comments:
------------------------------------------------------------------------
[2001-08-23 22:36:31] simap@scruznet.com
exec() does not seem to return a value when the command it
executes only outputs only one character.
i have an command line ini file editor i am using via exec.
$num1 = exec(escapeshellcmd("iniedit /var/www/html/test.ini
-s main -k num1 -r"));
if the ini file is set
num1=46
normal command line output "46"
works fine $num1 = 46, but for
num1=4
normal command line output "4"
however $num1 does not contain a value.
i am able to get around this issue by using passthru()
thanks for php! :)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12937&edit=1