ID: 30700
Updated by: [EMAIL PROTECTED]
Reported By: igor dot makarov at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Linux 2.4.27
PHP Version: 4.3.8
New Comment:
Errors are written to error_log by default, so check out your Apache's
error log for them. If you really want to see error messages when using
system() - redirect stderr to stdout:
<?php system ("ls -j 2>&1"); ?>
Previous Comments:
------------------------------------------------------------------------
[2004-11-06 14:05:27] igor dot makarov at mail dot ru
Description:
------------
I make a code:
system('ls -gfjgsfl');
and I nothing see then as I read in manual: "Execute an external
program and ->display output<-"
In this situation then I use wrong unix command the system() function
not worked propertly.
I think what it's will be solved in next version...
I do not know how it's work under PHP5.
P.S.
With passthru() and exec() functions same problem :o(
Reproduce code:
---------------
<?php
system('ls -gfjgsfl');
//nothing see
$_out = system('ls -gfjgsfl');
//still nothing see
?>
Expected result:
----------------
/bin/ls: invalid option -- j
Try `/bin/ls --help' for more information.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30700&edit=1