#33102 [Opn->Fbk]: Can't run programs in safe_mode_exec_dir
| From: | tony2001@php.net | Date: | Sun, 22 May 2005 14:28:29 +0000 |
| Subject: | #33102 [Opn->Fbk]: Can't run programs in safe_mode_exec_dir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79345@lists.php.net to get a copy of this message | ||
ID: 33102
Updated by: tony2001@php.net
Reported By: php-bugs at jensthebrain dot de
-Status: Open
+Status: Feedback
Bug Type: Safe Mode/open_basedir
Operating System: Windows 2003
PHP Version: 4.3.11
New Comment:
No. Try when slashes in both safe_mode_exec_dir and the command are the
same.
Previous Comments:
------------------------------------------------------------------------
[2005-05-22 16:23:44] php-bugs at jensthebrain dot de
The same:
<?php
error_reporting(E_ALL);
exec('d:/wwwroot/safe_bin/identify.exe', $ret, $error);
print_r($ret);
echo $error;
?>
>d:\Programme\php\php -n -d safe_mode=on -d
safe_mode_exec_dir=d:\wwwroot\safe_bin\
d:\wwwroot\www-test.xy.de\htdocs\test.php
Content-type: text/html
X-Powered-By: PHP/4.3.11
Array
(
)
0
------------------------------------------------------------------------
[2005-05-22 15:28:22] tony2001@php.net
And what if you execute "d:/wwwroot/safe_bin/identify.exe" instead of
"d:\wwwroot\safe_bin\identify.exe" ?
------------------------------------------------------------------------
[2005-05-22 14:43:41] php-bugs at jensthebrain dot de
Description:
------------
I can't execute binaries which are in safe_mode_exec_dir
(safe_mode=on)
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
exec('d:\wwwroot\safe_bin\identify.exe', $ret, $error);
print_r($ret);
echo $error;
?>
Expected result:
----------------
The output of identify.exe
Actual result:
--------------
>d:\programme\php\php -d safe_mode=on -d
safe_mode_exec_dir=d:/wwwroot/safe_bin/ d:
\wwwroot\www-test.xy.de\htdocs\test.php
Der Befehl "d:/wwwroot/safe_bin/" ist entweder falsch
geschrieben oder konnte nicht gefunden werden.
Content-type: text/html
Array
(
)
1
With \ instead of /
>d:\programme\php\php -d safe_mode=on -d
safe_mode_exec_dir=d:\wwwroot\safe_bin\ d:
\wwwroot\www-test.xy.de\htdocs\test.php
Content-type: text/html
Array
(
)
0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33102&edit=1