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
 [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: Thu Mar 28 13:01:28 2024 UTC