Bug #10240 Updated: passthru / exec etc have problems with input & output of executed programs
| From: | sander@php.net | Date: | Sat, 01 Dec 2001 20:35:29 +0000 |
| Subject: | Bug #10240 Updated: passthru / exec etc have problems with input & output of executed programs | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72219@lists.php.net to get a copy of this message | ||
ID: 10240
Updated by: sander
Reported By: goulas@ee.upatras.gr
Old Status: Feedback
Status: Closed
Bug Type: IIS related
Operating System: Windows ME/2000
PHP Version: 4.0.4pl1
New Comment:
No feedback. Closing.
Previous Comments:
------------------------------------------------------------------------
[2001-11-09 12:22:01] 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-04-09 06:51:58] goulas@ee.upatras.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.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10240&edit=1