From: yurtesen at ispro dot net Operating system: FreeBSD PHP version: 4.4.2 PHP Bug Type: Feature/Change Request Bug description: There is no default for open_basedir could it be that DOCUMENT_ROOT be default?
Description: ------------ There is no default for open_basedir(NULL). If there was a knob to turn on which would make DOCUMENT_ROOT to be the default then one could have open_basedir working for their current virtualhosts only by enabling the option. I assume this is quite safe when used with safe_mode since safe_mode can disable the change of environment variables or PHP could read document root value from the vhost configuration. I believe this would be trivial to implement and a very useful feature indeed. Expected result: ---------------- I would like to be able to set open_basedir dynamicly without the need to set it per virtualhost seperately. Actual result: -------------- It is not possible to use any kind of variables in open_basedir setting so it is impossible to set it dynamicly. -- Edit bug report at http://bugs.php.net/?id=37754&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37754&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37754&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37754&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37754&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37754&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37754&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37754&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37754&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37754&r=support Expected behavior: http://bugs.php.net/fix.php?id=37754&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37754&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37754&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37754&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37754&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37754&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37754&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37754&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37754&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37754&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37754&r=mysqlcfg