Skip to content

Commit 5ac9990

Browse files
wbobnikic
authored andcommitted
document open_basedir and realpath cache coupling in php.ini
[ci skip]
1 parent 3ad0ebd commit 5ac9990

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

php.ini-development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ serialize_precision = -1
300300
; open_basedir, if set, limits all file operations to the defined directory
301301
; and below. This directive makes most sense if used in a per-directory
302302
; or per-virtualhost web server configuration file.
303+
; Note: disables the realpath cache
303304
; http://php.net/open-basedir
304305
;open_basedir =
305306

@@ -332,6 +333,7 @@ disable_classes =
332333
; Determines the size of the realpath cache to be used by PHP. This value should
333334
; be increased on systems where PHP opens many files to reflect the quantity of
334335
; the file operations performed.
336+
; Note: if open_basedir is set, the cache is disabled
335337
; http://php.net/realpath-cache-size
336338
;realpath_cache_size = 4096k
337339

php.ini-production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ serialize_precision = -1
305305
; open_basedir, if set, limits all file operations to the defined directory
306306
; and below. This directive makes most sense if used in a per-directory
307307
; or per-virtualhost web server configuration file.
308+
; Note: disables the realpath cache
308309
; http://php.net/open-basedir
309310
;open_basedir =
310311

@@ -337,6 +338,7 @@ disable_classes =
337338
; Determines the size of the realpath cache to be used by PHP. This value should
338339
; be increased on systems where PHP opens many files to reflect the quantity of
339340
; the file operations performed.
341+
; Note: if open_basedir is set, the cache is disabled
340342
; http://php.net/realpath-cache-size
341343
;realpath_cache_size = 4096k
342344

0 commit comments

Comments
 (0)