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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sb at bpm dot ch
New email:
PHP Version: OS:

 

 [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: Sun Apr 28 18:01:31 2024 UTC