#44675 [Opn->Bgs]: no output from exec()
| From: | lagunaloire at argentina dot com | Date: | Tue, 08 Apr 2008 22:01:15 +0000 |
| Subject: | #44675 [Opn->Bgs]: no output from exec() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124097@lists.php.net to get a copy of this message | ||
ID: 44675
User updated by: lagunaloire at argentina dot com
Reported By: lagunaloire at argentina dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Linux
PHP Version: 5.2.5
New Comment:
A compilation problem. First I was compiled apache newly and forget to
recompile PHP. I recompiled PHP and it is working now.
Previous Comments:
------------------------------------------------------------------------
[2008-04-08 21:44:28] lagunaloire at argentina dot com
Description:
------------
The exec() function does not fill the &$output array!
I don't get the output from any program what I try to execute in Safe
mode or not.
Reproduce code:
---------------
exec("program", $output);
print_r($output);
Expected result:
----------------
Array
(
[0] => line1
[1] => line2
[2] => line3
)
Actual result:
--------------
Array () sometimes or nothing at all.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44675&edit=1