From 66b698c3cfde08785f1cc3f8574a0f49c45640fb Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 3 Jan 2017 09:25:11 +0100 Subject: [PATCH 1/4] Increase realpath_cache_size default value --- main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index c73f05b2da5..b55f879104a 100644 --- a/main/main.c +++ b/main/main.c @@ -567,7 +567,7 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("allow_url_include", "0", PHP_INI_SYSTEM, OnUpdateBool, allow_url_include, php_core_globals, core_globals) 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) - STD_PHP_INI_ENTRY("realpath_cache_size", "16K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals) + STD_PHP_INI_ENTRY("realpath_cache_size", "128K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals) STD_PHP_INI_ENTRY("realpath_cache_ttl", "120", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_ttl, virtual_cwd_globals, cwd_globals) STD_PHP_INI_ENTRY("user_ini.filename", ".user.ini", PHP_INI_SYSTEM, OnUpdateString, user_ini_filename, php_core_globals, core_globals) From 782b84c6d550ac6e695b54070bb0b409cac29f58 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 5 Jan 2017 10:18:48 +0100 Subject: [PATCH 2/4] updated default per proposal TODO: adjust php.ini defaults --- main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index b55f879104a..01ed3a64bc7 100644 --- a/main/main.c +++ b/main/main.c @@ -567,7 +567,7 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("allow_url_include", "0", PHP_INI_SYSTEM, OnUpdateBool, allow_url_include, php_core_globals, core_globals) 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) - STD_PHP_INI_ENTRY("realpath_cache_size", "128K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals) + STD_PHP_INI_ENTRY("realpath_cache_size", "4096K", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_size_limit, virtual_cwd_globals, cwd_globals) STD_PHP_INI_ENTRY("realpath_cache_ttl", "120", PHP_INI_SYSTEM, OnUpdateLong, realpath_cache_ttl, virtual_cwd_globals, cwd_globals) STD_PHP_INI_ENTRY("user_ini.filename", ".user.ini", PHP_INI_SYSTEM, OnUpdateString, user_ini_filename, php_core_globals, core_globals) From 81fb61f97c56405c456a0460b825aa34d903a14e Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 5 Jan 2017 16:11:30 +0100 Subject: [PATCH 3/4] Update php.ini-production --- php.ini-production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.ini-production b/php.ini-production index 60571aae724..cd80502c5c0 100644 --- a/php.ini-production +++ b/php.ini-production @@ -323,7 +323,7 @@ disable_classes = ; be increased on systems where PHP opens many files to reflect the quantity of ; the file operations performed. ; http://php.net/realpath-cache-size -;realpath_cache_size = 16k +;realpath_cache_size = 4096k ; Duration of time, in seconds for which to cache realpath information for a given ; file or directory. For systems with rarely changing files, consider increasing this From 49b2cbf7639c99a8b6129651e3dd838a19777494 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 5 Jan 2017 16:12:17 +0100 Subject: [PATCH 4/4] Update php.ini-development --- php.ini-development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.ini-development b/php.ini-development index 74b7f11bafd..346890a36f5 100644 --- a/php.ini-development +++ b/php.ini-development @@ -323,7 +323,7 @@ disable_classes = ; be increased on systems where PHP opens many files to reflect the quantity of ; the file operations performed. ; http://php.net/realpath-cache-size -;realpath_cache_size = 16k +;realpath_cache_size = 4096k ; Duration of time, in seconds for which to cache realpath information for a given ; file or directory. For systems with rarely changing files, consider increasing this