Bug #12937: exec does not return value if only one char

From: Date: Fri, 24 Aug 2001 02:36:31 +0000
Subject: Bug #12937: exec does not return value if only one char
Groups: php.dev 
Request: Send a blank email to php-dev+get-64212@lists.php.net to get a copy of this message
From: simap@scruznet.com Operating system: linux PHP version: 4.0.4pl1 PHP Bug Type: Output Control Bug description: exec does not return value if only one char 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 bug report at: http://bugs.php.net/?id=12937&edit=1

« previous php.dev (#64212) next »