From: php-bugs at jensthebrain dot de
Operating system: Windows 2003
PHP version: 4.3.11
PHP Bug Type: Safe Mode/open_basedir
Bug description: Can't run programs in safe_mode_exec_dir
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 bug report at http://bugs.php.net/?id=33102&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33102&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33102&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33102&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33102&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33102&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33102&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33102&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33102&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33102&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33102&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33102&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33102&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33102&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33102&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33102&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33102&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33102&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33102&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33102&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33102&r=mysqlcfg