[packages/php] update opcache.ini settings from php-7.2.0RC6/ext/opcache/README

glen glen at pld-linux.org
Tue Nov 14 20:03:19 CET 2017


commit 94b99ab9e4a1b1293f47ce83d2a7fd129bedff50
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Nov 14 18:35:36 2017 +0200

    update opcache.ini settings from php-7.2.0RC6/ext/opcache/README

 opcache.ini | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/opcache.ini b/opcache.ini
index 26c5574..80d9a9c 100644
--- a/opcache.ini
+++ b/opcache.ini
@@ -39,6 +39,18 @@ opcache.use_cwd = 1
 ; (default "1")
 opcache.validate_timestamps = 1
 
+; Leads OPcache to check file readability on each access to cached file.
+; This directive should be enabled in shared hosting environment, when few
+; users (PHP-FPM pools) reuse the common OPcache shared memory.
+; (default "0")
+opcache.validate_permission = 0
+
+; This directive prevents file name collisions in different "chroot"
+; environments. It should be enabled for sites that may serve requests in
+; different "chroot" environments.
+; (default "0")
+opcache.validate_root = 0
+
 ; How often (in seconds) to check file timestamps for changes to the shared
 ; memory storage allocation. ("1" means validate once per second, but only once
 ; per request. "0" means always validate)
@@ -61,18 +73,6 @@ opcache.revalidate_path = 0
 ; (default "1")
 opcache.save_comments = 1
 
-; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments" may
-; be always stored (save_comments=1), but not loaded by applications that don't
-; need them anyway.
-; (default "1")
-opcache.load_comments = 1
-
-; If enabled, a fast shutdown sequence is used for the accelerated code. The
-; fast shutdown sequence doesn't free each allocated block, but lets the Zend
-; Engine Memory Manager do the work.
-; (default "0")
-opcache.fast_shutdown = 0
-
 ; Allow file existence override (file_exists, etc.) performance feature.
 ; (default "0")
 opcache.enable_file_override = 0
@@ -81,7 +81,7 @@ opcache.enable_file_override = 0
 ; (default "0xffffffff")
 opcache.optimization_level = 0xffffffff
 
-; Enable this hack as a workaround for "can't redeclare class" errors.
+; Enable this hack as a workaround for "Cannot redeclare class" errors.
 ; The OPcache stores the places where DECLARE_CLASS opcodes use inheritance
 ; (These are the only opcodes that can be executed by PHP, but which may not be
 ; executed because the parent class is missing due to optimization). When the
@@ -155,3 +155,7 @@ opcache.protect_memory = 0
 ; directive allows to manually fix the "Unable to reattach to base address"
 ; errors.
 ;opcache.mmap_base = ""
+
+; Absolute path used to store shared lockfiles (for *nix only)
+; (default "/tmp")
+opcache.lockfile_path = "/tmp"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/4d1c1e42de366d58179734e731a91f48a85f9689



More information about the pld-cvs-commit mailing list