#33132 [Bgs]: when safe_mode is on, exec function escape newline wrong
| From: | stanojr at blackhole dot sk | Date: | Wed, 25 May 2005 10:16:03 +0000 |
| Subject: | #33132 [Bgs]: when safe_mode is on, exec function escape newline wrong | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79475@lists.php.net to get a copy of this message | ||
ID: 33132
User updated by: stanojr at blackhole dot sk
Reported By: stanojr at blackhole dot sk
Status: Bogus
Bug Type: Program Execution
Operating System: linux
PHP Version: 5.0.4
New Comment:
sorry, but, if you think \\\n is corectly escaped \n, then you are fag
Previous Comments:
------------------------------------------------------------------------
[2005-05-25 11:24:02] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
RTFM
------------------------------------------------------------------------
[2005-05-25 02:18:11] stanojr at blackhole dot sk
Description:
------------
if safe_mode is on
and i call
exec("something \n");
php call (from strace output)
execve("/bin/sh", ["sh", "-c", "/safe_mode_exec_dir/something
\\\n"],
[/* 35 vars */]) = 0
\\\n is bug
it must be \n
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33132&edit=1