Bug #16975 Updated: [chm] bug on passthru

From: Date: Sun, 26 May 2002 18:18:10 +0000
Subject: Bug #16975 Updated: [chm] bug on passthru
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8607@lists.php.net to get a copy of this message
ID: 16975 Updated by: derick@php.net Reported By: lowang@ipro.pl -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] lowang@ipro.pl 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

« previous php.bugs (#8607) next »