ID: 16975
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: Program Execution
Operating System: windows
PHP Version: 4.2.0
New Comment:
Not a bug, please read the documentation more careful. It says that it
will set $return_avr to the return value of the executed program. And
echo simply returns 0 as exit code.
Previous Comments:
------------------------------------------------------------------------
[2002-05-02 16:07:51] [EMAIL PROTECTED]
I have found a bug in passthru function.
It should return output generated by program to value but on my system
it just print it to the browser and value sets to 0.
My script
<?
$txt = 'some txt^Z^Z^Z^Z'.chr(13);
passthru("echo ".escapeshellcmd($txt)." | tidy -config
config.txt",$txt);
?>
there should be an output from tidy in $txt but passthru print the
output and sets $txt to 0.
[chm date: 2002-04-20]...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16975&edit=1