Skip to content

Commit 8e39a27

Browse files
committed
Merge branch 'realpath_cache_size_update' into PHP-7.0
* realpath_cache_size_update: Increase realpath_cache_size default value add UPGRADING note regarding realpath_cache_size
2 parents a7c444b + 49b2cbf commit 8e39a27

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ out, that the corresponding SDK isn't available anymore.
788788
. Removed asp_tags ini directive. Trying to enable it will result in a fatal
789789
error.
790790
. Removed always_populate_raw_post_data ini directive.
791+
. realpath_cache_size set to 4096k by default
791792

792793
========================================
793794
12. Windows Support

main/main.c

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

570-
STD_PHP_INI_ENTRY("realpath_cache_size", "16K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals)
570+
STD_PHP_INI_ENTRY("realpath_cache_size", "4096K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals)
571571
STD_PHP_INI_ENTRY("realpath_cache_ttl", "120", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_ttl, virtual_cwd_globals, cwd_globals)
572572

573573
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
@@ -323,7 +323,7 @@ disable_classes =
323323
; be increased on systems where PHP opens many files to reflect the quantity of
324324
; the file operations performed.
325325
; http://php.net/realpath-cache-size
326-
;realpath_cache_size = 16k
326+
;realpath_cache_size = 4096k
327327

328328
; Duration of time, in seconds for which to cache realpath information for a given
329329
; 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
@@ -323,7 +323,7 @@ disable_classes =
323323
; be increased on systems where PHP opens many files to reflect the quantity of
324324
; the file operations performed.
325325
; http://php.net/realpath-cache-size
326-
;realpath_cache_size = 16k
326+
;realpath_cache_size = 4096k
327327

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

0 commit comments

Comments
 (0)