|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10638 exec(), system(), ... without reply
Submitted: 2001-05-03 12:50 UTC Modified: 2001-05-03 13:26 UTC
From: sb at bpm dot ch Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.5 OS: Windows 2000
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: sb at bpm dot ch
New email:
PHP Version: OS:


 [2001-05-03 12:50 UTC] sb at bpm dot ch
$output = exec("echo hello");
echo "$output";

...will nothing display!
(that's wrong!)

$output = exec("echo hello > hello.txt");

...will create a file named hello.txt with the value hello.
(that's fine.)

So the function exec() works properly but it gives no value back. The same problem occures in the function system() or in the backticks.

I'm using Windows 2000 with IIS.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-03 12:51 UTC]
This should be fixed in 4.0.6
 [2001-05-03 13:26 UTC] sb at bpm dot ch
$output = exec("any_other_program.exe");
echo "$output";

...will nothing display, too.
(it's not an echo-problem!)

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 01:01:33 2024 UTC