From db8a357b4f1e67e2bb2d697399e7804264ba030f Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 22 Dec 2019 17:48:29 +0100 Subject: [PATCH] - updated opcache.ini, dropped opcache from php.ini, fixed extension_dir --- opcache.ini | 15 ++--- php-ini.patch | 177 +++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 167 insertions(+), 25 deletions(-) diff --git a/opcache.ini b/opcache.ini index 16a3cff..dace96b 100644 --- a/opcache.ini +++ b/opcache.ini @@ -1,6 +1,4 @@ -; Enable opcache zend extension module -zend_extension=opcache.so - +[opcache] ; Determines if Zend OPCache is enabled ;opcache.enable=1 @@ -42,18 +40,13 @@ zend_extension=opcache.so ; size of the optimized code. ;opcache.save_comments=1 -; If enabled, a fast shutdown sequence is used for the accelerated code -; Depending on the used Memory Manager this may cause some incompatibilities. -;opcache.fast_shutdown=0 - ; Allow file existence override (file_exists, etc.) performance feature. ;opcache.enable_file_override=0 ; A bitmask, where each bit enables or disables the appropriate OPcache ; passes -;opcache.optimization_level=0xffffffff +;opcache.optimization_level=0x7FFFBFFF -;opcache.inherited_hack=1 ;opcache.dups_fix=0 ; The location of the OPcache blacklist file (wildcards allowed). @@ -127,3 +120,7 @@ zend_extension=opcache.so ; Prevent name collisions in chroot'ed environment. ;opcache.validate_root=0 + +; If specified, it produces opcode dumps for debugging different stages of +; optimizations. +;opcache.opt_debug_level=0 diff --git a/php-ini.patch b/php-ini.patch index c73e737..e118fcd 100644 --- a/php-ini.patch +++ b/php-ini.patch @@ -1,5 +1,5 @@ ---- php-7.3.0/php.ini 2018-12-04 16:12:20.000000000 +0000 -+++ php-7.3.0/php.ini 2018-12-07 16:18:48.333403000 +0000 +--- php-7.3.13/php.ini 2019-12-17 11:29:15.000000000 +0100 ++++ php-7.3.13/php.ini 2019-12-22 17:46:06.720000000 +0100 @@ -82,6 +82,16 @@ ; much more verbose when it comes to errors. We recommend using the ; development version only in development environments, as errors shown to @@ -17,7 +17,7 @@ ; This is the php.ini-production INI file. -@@ -149,7 +163,7 @@ +@@ -149,7 +159,7 @@ ; Production Value: 5 ; short_open_tag @@ -26,7 +26,7 @@ ; Development Value: Off ; Production Value: Off -@@ -170,7 +184,7 @@ +@@ -165,7 +175,7 @@ ;user_ini.filename = ".user.ini" ; To disable this feature set this option to an empty value @@ -35,7 +35,7 @@ ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) ;user_ini.cache_ttl = 300 -@@ -190,7 +204,7 @@ +@@ -185,7 +195,7 @@ ; documents, however this remains supported for backward compatibility reasons. ; Note that this directive does not control the