php.net |  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
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.


Patches

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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-04 18:54 UTC] 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-04 18:55 UTC] cmb@php.net
-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] cmb@php.net
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] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b265bf96d03c04007d82d6ae56461880759a13af
Log: Fix #77406: open_basedir disables the realpath cache
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Apr 22 10:12:42 2021 UTC