Req #37754 [Opn->Wfx]: There is no default for open_basedir could it be that DOCUMENT_ROOT be default?

From: Date: Thu, 20 May 2021 11:21:59 +0000
Subject: Req #37754 [Opn->Wfx]: There is no default for open_basedir could it be that DOCUMENT_ROOT be default?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233915@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37754&edit=1 ID: 37754 Updated by: cmb@php.net Reported by: yurtesen at ispro dot net Summary: There is no default for open_basedir could it be that DOCUMENT_ROOT be default? -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Safe Mode/open_basedir Operating System: FreeBSD PHP Version: 4.4.2 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: That would not necessarily work/make sense for some SAPIs. Furthermore, open_basedir has the drawback that the realpath cache is disabled, so enforcing a default would be controversial. Anyhow, given that this ticket has been filed almost 15 years ago, and no further discussion happend, I'm closing this as wontfix. If anybody is still interested in having an open_basedir default, please pursue the RFC process[1]. [1] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2006-06-08 21:21:19] yurtesen at ispro dot net 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 this bug report at https://bugs.php.net/bug.php?id=37754&edit=1

« previous php.bugs (#233915) next »