]> git.pld-linux.org Git - packages/php.git/blobdiff - opcache.ini
update opcache.ini settings from php-7.2.0RC6/ext/opcache/README
[packages/php.git] / opcache.ini
index 26c5574cdcf9546e4de9b8496b5cb7a925672790..80d9a9cd887be4981346ff733b5e67537897fc8a 100644 (file)
@@ -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"
This page took 0.026682 seconds and 4 git commands to generate.