#37219 [NEW]: shell_exec() not capturing all output.
| From: | egingell at sisna dot com | Date: | Thu, 27 Apr 2006 08:16:49 +0000 |
| Subject: | #37219 [NEW]: shell_exec() not capturing all output. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96279@lists.php.net to get a copy of this message | ||
From: egingell at sisna dot com
Operating system: Unix w/ Apache 1.3.33
PHP version: 4.4.2
PHP Bug Type: Unknown/Other Function
Bug description: shell_exec() not capturing all output.
Description:
------------
Description is in the code snippit. It's possible that the problem lies
with Apache 1.3.33.
Reproduce code:
---------------
<?
/* I don't know if it's a bug in Dreamhost's PHP 4.4.2 or a bug in Apache
or what, but the following produces no output. */
echo shell_exec("mkdir -v 'fakedir';rmdir -v 'fakedir'");
/* While executig "mkdir -v 'fakedir';rmdir -v 'fakedir'" at the
command
line gives the following: */
/* mkdir: created directory `fakedir' */
/* rmdir: removing directory, fakedir */
/* This line produces the correct output. */ echo shell_exec("touch
'fakefile';rm -v 'fakefile'");
/* removed `fakefile' */
?>
Expected result:
----------------
Expected results are in the code snippit.
Actual result:
--------------
Actual results are in the code snippit.
--
Edit bug report at http://bugs.php.net/?id=37219&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37219&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37219&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37219&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37219&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37219&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37219&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37219&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37219&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37219&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37219&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37219&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37219&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37219&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37219&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37219&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37219&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37219&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37219&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37219&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37219&r=mysqlcfg