|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37754 There is no default for open_basedir could it be that DOCUMENT_ROOT be default?
Submitted: 2006-06-08 21:21 UTC Modified: 2016-12-30 23:45 UTC
Avg. Score:4.2 ± 1.4
Reproduced:4 of 6 (66.7%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: yurtesen at ispro dot net Assigned:
Status: Open Package: Safe Mode/open_basedir
PHP Version: 4.4.2 OS: FreeBSD
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-06-08 21:21 UTC] yurtesen at ispro dot net
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:45 UTC]
-Package: Feature/Change Request +Package: Safe Mode/open_basedir
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 09 17:01:24 2021 UTC