|  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.4 ± 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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
5 + 1 = ?
Subscribe to this entry?

 [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-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 29 21:01:29 2020 UTC