Skip to content

Commit c9abe87

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: Increase realpath_cache_size default value add UPGRADING note for realpath_cache_size
2 parents 81c8bc3 + 8a6d3d3 commit c9abe87

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
@@ -207,6 +207,9 @@ PHP 7.2 UPGRADE NOTES
207207
- sql.safe_mode
208208
. This INI directive have been removed.
209209

210+
- realpath_cache_size
211+
. Set to 4096k by default
212+
210213
========================================
211214
12. Windows Support
212215
========================================

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ PHP_INI_BEGIN()
601601
STD_PHP_INI_BOOLEAN("allow_url_include", "0", PHP_INI_SYSTEM, OnUpdateBool, allow_url_include, php_core_globals, core_globals)
602602
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)
603603

604-
STD_PHP_INI_ENTRY("realpath_cache_size", "16K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals)
604+
STD_PHP_INI_ENTRY("realpath_cache_size", "4096K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals)
605605
STD_PHP_INI_ENTRY("realpath_cache_ttl", "120", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_ttl, virtual_cwd_globals, cwd_globals)
606606

607607
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)