ID: 33102
User updated by: php-bugs at jensthebrain dot de
Reported By: php-bugs at jensthebrain dot de
-Status: Feedback
+Status: Open
Bug Type: Safe Mode/open_basedir
Operating System: Windows 2003
PHP Version: 4.3.11
New Comment:
Both with /
?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
Die Syntax für den Dateinamen, Verzeichnisnamen oder die
Datenträgerbezeichnung ist falsch.
Content-type: text/html
X-Powered-By: PHP/4.3.11
Array
(
)
1
It seems that safe_mode_exec_dir with / causes problems: Die Syntax für
den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist
falsch.
- Syntax for filename, directoryname or partitionname is wrong
Previous Comments:
[2005-05-22 16:28:29] [EMAIL PROTECTED]
No. Try when slashes in both safe_mode_exec_dir and the command are the
same.
[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] [EMAIL PROTECTED]
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=33102edit=1