From:
Operating system: Debian Squeeze
PHP version: 5.3.9
Package: CGI/CLI related
Bug Type: Bug
Bug description:Output problem when script contains command
Description:
------------
A parsing/execution problem is taking place when a command, such as "php
test.php", runs a script which contains the command ("php test.php") within
a string.
It seems the problem can also be recreated when the string is manipulated,
like base64 decoded.
Test script:
---------------
<?php
echo shell_exec("ps aux|grep php test.php");
?>
Expected result:
----------------
root 9641 0.0 0.1 162544 10036 pts/0 S 12:19 0:00 php
test.php
Actual result:
--------------
<?php
echo shell_exec("ps aux|grep php test.php");
--
Edit bug report at https://bugs.php.net/bug.php?id=60838&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60838&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60838&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60838&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60838&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60838&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60838&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60838&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60838&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60838&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60838&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60838&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60838&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60838&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60838&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60838&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60838&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60838&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60838&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60838&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60838&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60838&r=mysqlcfg