]> granicus.if.org Git - php/commitdiff
Add opcache.lockfile_path and opcache.lockfile_path to ini settings
authorPeter Kokot <peterkokot@gmail.com>
Fri, 5 Apr 2019 17:44:56 +0000 (19:44 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Fri, 5 Apr 2019 17:44:56 +0000 (19:44 +0200)
Some default opcache settings were missing.

php.ini-development
php.ini-production

index 138ed5e542b828d721c24a2e7810b365fa64ad60..5883743e53fa519d18d16abb97fda70ebfe5bd16 100644 (file)
@@ -1713,7 +1713,7 @@ zend.assertions = 1
 ;mbstring.http_output_conv_mimetype=
 
 ; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
-; to the pcre.recursion_limit for PCRE. 
+; to the pcre.recursion_limit for PCRE.
 ; Default: 100000
 ;mbstring.regex_stack_limit=100000
 
@@ -1919,6 +1919,14 @@ ldap.max_links = -1
 ; http://php.net/opcache.preload
 ;opcache.preload=
 
+; Prevents caching files that are less than this number of seconds old. It
+; protects from caching of incompletely updated files. In case all file updates
+; on your site are atomic, you may increase performance by setting it to "0".
+;opcache.file_update_protection=2
+
+; Absolute path used to store shared lockfiles (for *nix only).
+;opcache.lockfile_path=/tmp
+
 [curl]
 ; A default value for the CURLOPT_CAINFO option. This is required to be an
 ; absolute path.
index 4125de2a1dfa38dfd0fc175db1a41f5e439b2e35..5ae76c810a0d6e8e492d6c3e4b5c191bcea3d932 100644 (file)
@@ -1720,7 +1720,7 @@ zend.assertions = -1
 ;mbstring.http_output_conv_mimetype=
 
 ; This directive specifies maximum stack depth for mbstring regular expressions. It is similar
-; to the pcre.recursion_limit for PCRE. 
+; to the pcre.recursion_limit for PCRE.
 ; Default: 100000
 ;mbstring.regex_stack_limit=100000
 
@@ -1926,6 +1926,14 @@ ldap.max_links = -1
 ; http://php.net/opcache.preload
 ;opcache.preload=
 
+; Prevents caching files that are less than this number of seconds old. It
+; protects from caching of incompletely updated files. In case all file updates
+; on your site are atomic, you may increase performance by setting it to "0".
+;opcache.file_update_protection=2
+
+; Absolute path used to store shared lockfiles (for *nix only).
+;opcache.lockfile_path=/tmp
+
 [curl]
 ; A default value for the CURLOPT_CAINFO option. This is required to be an
 ; absolute path.