|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77406 open_basedir disables the realpath cache
Submitted: 2019-01-03 04:29 UTC Modified: 2019-01-04 18:55 UTC
From: wbob at buerotiger dot de Assigned: cmb (profile)
Status: Closed Package: Safe Mode/open_basedir
PHP Version: 7.3.0 OS: Linux
Private report: No CVE-ID: None
 [2019-01-03 04:29 UTC] wbob at buerotiger dot de
if open_basedir is set, the realpath cache will be disabled.

See and its follow-up

This is underdocumented. Beyond the source (, one can find it in the long comments to ini.core and in the realpath_cache_* function comments. The configuration documentation should make the information on the relation of open_basedir to the realpath cache easily accessible.

The difference of a disabled realpatch cache can be significant enough to discuss alternative means of isolation to open_basedir.

This patch adds two notes: one within the open_basedir option description and one in the performance tuning section listing the realpath_cache options.


document-openbasedir-realpath-relation (last revision 2019-01-03 04:29 UTC by wbob at buerotiger dot de)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-04 18:54 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix #77406: open_basedir disables the realpath cache
 [2019-01-04 18:55 UTC]
-Summary: document open_basedirs disabling effect on the realpath cache +Summary: open_basedir disables the realpath cache -Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-01-04 18:55 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report and the patch, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC]
Automatic comment on behalf of cmb
Log: Fix #77406: open_basedir disables the realpath cache
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 20:03:57 2022 UTC