#28811 [Opn->Bgs]: In safemode, exec/system doesn't find commands between ticks
| From: | iliaa@php.net | Date: | Wed, 16 Jun 2004 23:48:02 +0000 |
| Subject: | #28811 [Opn->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-61012@lists.php.net to get a copy of this message | ||
ID: 28811
Updated by: iliaa@php.net
Reported By: egoh at flexwebhosting dot nl
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Fedora Core 1
PHP Version: 4.3.7
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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