From 36554b2326f9c2966ca42505a2f13da34cd4b86f Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 22 Dec 2019 17:53:48 +0100 Subject: [PATCH] - updated opcache.ini, dropped opcache from php.ini, fixed extension_dir --- opcache.ini | 12 ++-- php-ini.patch | 176 +++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 166 insertions(+), 22 deletions(-) diff --git a/opcache.ini b/opcache.ini index 16a3cff..36637ee 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,10 +40,6 @@ 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 @@ -127,3 +121,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 c9ea85b..f7ca037 100644 --- a/php-ini.patch +++ b/php-ini.patch @@ -1,5 +1,5 @@ ---- php-7.2.1/php.ini 2018-01-02 22:36:07.000000000 +0000 -+++ php-7.2.1/php.ini 2018-01-07 18:48:58.353614413 +0000 +--- php-7.2.26/php.ini 2019-12-17 13:30:17.000000000 +0100 ++++ php-7.2.26/php.ini 2019-12-22 17:52:48.548000000 +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 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 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