ID: 12937
Updated by: joey
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

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


-- 
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]

Reply via email to