From:             not at valid dot email
Operating system: linux
PHP version:      4.3.4
PHP Bug Type:     *General Issues
Bug description:  exec() with safe_mode

Description:
------------
safe_mode cause exec command to parse all arguments after the command as
one argument (in quote?)

Is this a bug? is it documented somewhere?


Reproduce code:
---------------
<?php
exec("echo x | echo y",$output);
$output=implode(',',$output);
echo "output is: $output"
?>

Expected result:
----------------
safe_mode off output is: y
safe_mode on output is: y

Actual result:
--------------
safe_mode off output is: y
safe_mode on output is: x | echo y

-- 
Edit bug report at http://bugs.php.net/?id=27076&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27076&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27076&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27076&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27076&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27076&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27076&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27076&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27076&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27076&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27076&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27076&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27076&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27076&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27076&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27076&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27076&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27076&r=float

Reply via email to