PHP 4.0 Bug #10638 Updated: exec(), system(), ... without reply
| From: | sb at bpm dot ch | Date: | Thu, 03 May 2001 17:26:18 +0000 |
| Subject: | PHP 4.0 Bug #10638 Updated: exec(), system(), ... without reply | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53665@lists.php.net to get a copy of this message | ||
ID: 10638
User Update by: sb@bpm.ch
Status: Closed
Bug Type: IIS related
Description: exec(), system(), ... without reply
<?php
$output = exec("any_other_program.exe");
echo "$output";
?>
...will nothing display, too.
(it's not an echo-problem!)
Previous Comments:
---------------------------------------------------------------------------
[2001-05-03 12:51:46] andi@php.net
This should be fixed in 4.0.6
---------------------------------------------------------------------------
[2001-05-03 12:50:14] sb@bpm.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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10638