#28811 [Bgs]: In safemode, exec/system doesn't find commands between ticks
| From: | egoh at flexwebhosting dot nl | Date: | Thu, 17 Jun 2004 00:01:58 +0000 |
| Subject: | #28811 [Bgs]: In safemode, exec/system doesn't find commands between ticks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61013@lists.php.net to get a copy of this message | ||
ID: 28811
User updated by: egoh at flexwebhosting dot nl
Reported By: egoh at flexwebhosting dot nl
Status: Bogus
Bug Type: *General Issues
Operating System: Fedora Core 1
PHP Version: 4.3.7
New Comment:
I'm not talking about back-ticks or shell_exec, please look a little
closer.
Previous Comments:
------------------------------------------------------------------------
[2004-06-17 01:48:01] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
When safe_mode is enabled both `` and shell_exec() are
disabled.
------------------------------------------------------------------------
[2004-06-17 01:39:34] egoh at flexwebhosting dot nl
Description:
------------
When running in safemode, you can't call a command like:
'/usr/bin/convert' .
When safemode is off this does work.
It is causing some common scripts to fail, cause they use the hooks to
allow people to use spaces or other special signs in the path.
Reproduce code:
---------------
<?
$command="'/usr/bin/convert'";
exec($command,$results,$status);
print_r($results);
echo $status;
?>
Expected result:
----------------
The convert command to be executed.
Actual result:
--------------
Exec returns 127 file not found status.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28811&edit=1