Skip to content

Commit d5a1c5a

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Increase realpath_cache_size default value add UPGRADING note for realpath_cache_size
2 parents 1f6a906 + bebfdec commit d5a1c5a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ PHP 7.1 UPGRADE NOTES
415415
. If the value is set to -1, then the dtoa mode 0 is used. No changes
416416
in default value which is still 14.
417417

418+
- realpath_cache_size
419+
. Set to 4096k by default
420+
418421
========================================
419422
12. Windows Support
420423
========================================

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ PHP_INI_BEGIN()
607607
STD_PHP_INI_BOOLEAN("allow_url_include", "0", PHP_INI_SYSTEM, OnUpdateBool, allow_url_include, php_core_globals, core_globals)
608608
STD_PHP_INI_BOOLEAN("enable_post_data_reading", "1", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateBool, enable_post_data_reading, php_core_globals, core_globals)
609609

610-
STD_PHP_INI_ENTRY("realpath_cache_size", "16K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals)
610+
STD_PHP_INI_ENTRY("realpath_cache_size", "4096K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals)
611611
STD_PHP_INI_ENTRY("realpath_cache_ttl", "120", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_ttl, virtual_cwd_globals, cwd_globals)
612612

613613
STD_PHP_INI_ENTRY("user_ini.filename", ".user.ini", PHP_INI_SYSTEM, OnUpdateString, user_ini_filename, php_core_globals, core_globals)

php.ini-development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ disable_classes =
338338
; be increased on systems where PHP opens many files to reflect the quantity of
339339
; the file operations performed.
340340
; http://php.net/realpath-cache-size
341-
;realpath_cache_size = 16k
341+
;realpath_cache_size = 4096k
342342

343343
; Duration of time, in seconds for which to cache realpath information for a given
344344
; file or directory. For systems with rarely changing files, consider increasing this

php.ini-production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ disable_classes =
338338
; be increased on systems where PHP opens many files to reflect the quantity of
339339
; the file operations performed.
340340
; http://php.net/realpath-cache-size
341-
;realpath_cache_size = 16k
341+
;realpath_cache_size = 4096k
342342

343343
; Duration of time, in seconds for which to cache realpath information for a given
344344
; file or directory. For systems with rarely changing files, consider increasing this

0 commit comments

Comments
 (0)