#37219 [Fbk->Csd]: shell_exec() not capturing all output.

From: Date: Sun, 30 Apr 2006 10:53:54 +0000
Subject: #37219 [Fbk->Csd]: shell_exec() not capturing all output.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96392@lists.php.net to get a copy of this message
 ID:               37219
 User updated by:  egingell at sisna dot com
 Reported By:      egingell at sisna dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         Unknown/Other Function
 Operating System: Unix w/ Apache 1.3.33
 PHP Version:      4.4.2
 New Comment:

Must be either a PHP or Apache installation problem.

P.S. It is not my installation it is that of my hosting provider.


Previous Comments:
------------------------------------------------------------------------

[2006-04-29 01:45:45] bjori@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Can't reproduce

------------------------------------------------------------------------

[2006-04-27 08:16:49] egingell at sisna dot com

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 this bug report at http://bugs.php.net/?id=37219&edit=1


Thread (3 messages)

« previous php.bugs (#96392) next »