php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 - 20 = ?
Subscribe to this entry?

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

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

<?php
$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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-03 12:51 UTC] andi@php.net
This should be fixed in 4.0.6
 [2001-05-03 13:26 UTC] sb at bpm dot ch
<?php
$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: Fri May 24 07:01:35 2024 UTC