From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]