From: igor dot makarov at mail dot ru Operating system: Linux 2.4.27 PHP version: 4.3.8 PHP Bug Type: Output Control Bug description: Empty output using system(<wrong string>) function
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 bug report at http://bugs.php.net/?id=30700&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30700&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30700&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30700&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30700&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30700&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30700&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30700&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30700&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30700&r=support Expected behavior: http://bugs.php.net/fix.php?id=30700&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30700&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30700&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30700&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30700&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30700&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30700&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30700&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30700&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30700&r=mysqlcfg