|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16975 [chm] bug on passthru
Submitted: 2002-05-02 16:07 UTC Modified: 2010-12-20 11:44 UTC
From: lowang at ipro dot pl Assigned:
Status: Not a bug Package: Program Execution
PHP Version: 4.2.0 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lowang at ipro dot pl
New email:
PHP Version: OS:


 [2002-05-02 16:07 UTC] lowang at ipro dot 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]...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 14:18 UTC]
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.
 [2010-12-20 11:44 UTC]
-Package: Tidy +Package: Program Execution
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Dec 03 07:01:23 2020 UTC