From 2988053fb3558fed388cc181213c9dd44b910342 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 9 Jan 2017 10:25:39 +0100 Subject: [PATCH 1/3] suggest opcache.enable_cli=1 in php.ini-production --- php.ini-production | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.ini-production b/php.ini-production index ae431cb5ae267..72cb4172e79ce 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1782,7 +1782,7 @@ ldap.max_links = -1 ;opcache.enable=0 ; Determines if Zend OPCache is enabled for the CLI version of PHP -;opcache.enable_cli=0 +;opcache.enable_cli=1 ; The OPcache shared memory storage size. ;opcache.memory_consumption=64 From 46d0c2de8e3183ec4802683d7b82de0f29f4422d Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 9 Jan 2017 10:26:30 +0100 Subject: [PATCH 2/3] suggest opcache.enable_cli=1 in php.ini-development --- php.ini-development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.ini-development b/php.ini-development index 07fa32ba83224..3b4ecfd230fd6 100644 --- a/php.ini-development +++ b/php.ini-development @@ -1782,7 +1782,7 @@ ldap.max_links = -1 ;opcache.enable=0 ; Determines if Zend OPCache is enabled for the CLI version of PHP -;opcache.enable_cli=0 +;opcache.enable_cli=1 ; The OPcache shared memory storage size. ;opcache.memory_consumption=64 From d481e3b11e047d2594a1f95e234a025cd178c8d7 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 9 Jan 2017 10:27:43 +0100 Subject: [PATCH 3/3] default opcache.enable_cli=1 --- ext/opcache/zend_accelerator_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 1a3fdb4b0d905..40d2e3abaeb4d 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -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" , "0" , PHP_INI_SYSTEM, OnUpdateBool, accel_directives.enable_cli, 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_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)