]> granicus.if.org Git - php/commitdiff
Revert "merge PR #2290: enable opcache in CLI in 7.1+"
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 2 Jun 2017 21:34:32 +0000 (23:34 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 2 Jun 2017 21:36:20 +0000 (23:36 +0200)
This reverts commit 71fe529afc2f9bfd99d85539c709a27f025c0caa.

Without the file cache (which is not enabled by default), this has
non-trivial impact on the startup time. It also significantly
increases the baseline memory usage of PHP on CLI.

NEWS
ext/opcache/zend_accelerator_module.c
php.ini-development
php.ini-production

diff --git a/NEWS b/NEWS
index 4735dd47a4a01a43a23b21224f48ab059ab86212..ff378519c03901d3193154e97e775803e6138a22 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ PHP                                                                        NEWS
 - Opcache:
   . Fixed bug #74663 (Segfault with opcache.memory_protect and
     validate_timestamp). (Laruence)
+  . Revert opcache.enable_cli to default disabled. (Nikita)
 
 - Reflection:
   . Fixed bug #74673 (Segfault when cast Reflection object to string with
index 2ed27df3154ad878874d2425ce03465c1a48d3b4..259f75c2f2891075dfe20f0affd5641641a913d4 100644 (file)
@@ -304,7 +304,7 @@ ZEND_INI_BEGIN()
        STD_PHP_INI_ENTRY("opcache.optimization_level"    , DEFAULT_OPTIMIZATION_LEVEL , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.optimization_level,   zend_accel_globals, accel_globals)
        STD_PHP_INI_ENTRY("opcache.opt_debug_level"       , "0"      , PHP_INI_SYSTEM, OnUpdateLong,             accel_directives.opt_debug_level,            zend_accel_globals, accel_globals)
        STD_PHP_INI_BOOLEAN("opcache.enable_file_override"      , "0"   , PHP_INI_SYSTEM, OnUpdateBool,              accel_directives.file_override_enabled,     zend_accel_globals, accel_globals)
-       STD_PHP_INI_BOOLEAN("opcache.enable_cli"             , "1"   , PHP_INI_SYSTEM, OnUpdateBool,              accel_directives.enable_cli,                zend_accel_globals, accel_globals)
+       STD_PHP_INI_BOOLEAN("opcache.enable_cli"             , "0"   , PHP_INI_SYSTEM, OnUpdateBool,              accel_directives.enable_cli,                zend_accel_globals, accel_globals)
        STD_PHP_INI_ENTRY("opcache.error_log"                , ""    , PHP_INI_SYSTEM, OnUpdateString,           accel_directives.error_log,                 zend_accel_globals, accel_globals)
        STD_PHP_INI_ENTRY("opcache.restrict_api"             , ""    , PHP_INI_SYSTEM, OnUpdateString,           accel_directives.restrict_api,              zend_accel_globals, accel_globals)
 
index d8701951b1e2915efd49713502d4456cf749dd92..e371ca5bc170d86cdc3152add9999b437cbd6b2e 100644 (file)
@@ -1782,7 +1782,7 @@ ldap.max_links = -1
 ;opcache.enable=1
 
 ; Determines if Zend OPCache is enabled for the CLI version of PHP
-;opcache.enable_cli=1
+;opcache.enable_cli=0
 
 ; The OPcache shared memory storage size.
 ;opcache.memory_consumption=128
index a8ac8825e78da56f298a1e597e47b80491fc05a5..0a28d3b6f2aafda6706083b8176f640fa3b7cdde 100644 (file)
@@ -1782,7 +1782,7 @@ ldap.max_links = -1
 ;opcache.enable=1
 
 ; Determines if Zend OPCache is enabled for the CLI version of PHP
-;opcache.enable_cli=1
+;opcache.enable_cli=0
 
 ; The OPcache shared memory storage size.
 ;opcache.memory_consumption=128