php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10240 passthru / exec etc have problems with input & output of executed programs
Submitted: 2001-04-09 06:51 UTC Modified: 2001-12-01 15:35 UTC
From: goulas at ee dot upatras dot gr Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.4pl1 OS: Windows ME/2000
Private report: No CVE-ID: None
 [2001-04-09 06:51 UTC] goulas at ee dot upatras dot gr
I cannot have output of executed programs from functions like passthru or exec. The same script runs well on Linux php (it is version 3.0 on Linux).
I tried on Windows something like 

passthru("command /c dir");

and on Linux

passthru("/bin/ls");

On windows ME I'm using the CGI version of PHP, on PWS, on 2000 I 'm using the CGI version with IIS. On Linux, I don't know exactly what's going on, I know only that it runs Apache. With passthru the CGI execution takes TOO MUCH time, and with exec it doesn't fill the return array with the output.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-09 12:22 UTC] sander@php.net
Can you try the latest CVS? (Windows builds at http://php-dev-win.dhs.org/, source at snaps.php.net or via CVS)
Using PHP 4.0.6 on Windows probably won't work; there were many problems with exec-alike functions on 4.0.6 which are fixed in the latest CVS.

And if it still doesn't work, can you provide a sample script?
 [2001-12-01 15:35 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 21:01:29 2025 UTC