Doc #77406 [Opn->Csd]: open_basedir disables the realpath cache
| From: | cmb@php.net | Date: | Fri, 04 Jan 2019 18:55:00 +0000 |
| Subject: | Doc #77406 [Opn->Csd]: open_basedir disables the realpath cache | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16296@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77406&edit=1
ID: 77406
Updated by: cmb@php.net
Reported by: wbob at buerotiger dot de
-Summary: document open_basedirs disabling effect on the
realpath cache
+Summary: open_basedir disables the realpath cache
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Safe Mode/open_basedir
Operating System: Linux
PHP Version: 7.3.0
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2019-01-04 18:54:18] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346544
Log: Fix #77406: open_basedir disables the realpath cache
------------------------------------------------------------------------
[2019-01-03 04:29:51] wbob at buerotiger dot de
Description:
------------
if open_basedir is set, the realpath cache will be disabled.
See https://bugs.php.net/bug.php?id=52312#1279034613
and its follow-up https://bugs.php.net/bug.php?id=53263
This is underdocumented. Beyond the source
(https://github.com/php/php-src/blob/PHP-7.3.0/main/main.c#L1800), 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77406&edit=1