Skip to content

Commit 4e99d30

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: merge PR #2290: enable opcache in CLI in 7.1+
2 parents cde08d4 + 71fe529 commit 4e99d30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ ZEND_INI_BEGIN()
304304
STD_PHP_INI_ENTRY("opcache.optimization_level" , DEFAULT_OPTIMIZATION_LEVEL , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.optimization_level, zend_accel_globals, accel_globals)
305305
STD_PHP_INI_ENTRY("opcache.opt_debug_level" , "0" , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.opt_debug_level, zend_accel_globals, accel_globals)
306306
STD_PHP_INI_BOOLEAN("opcache.enable_file_override" , "0" , PHP_INI_SYSTEM, OnUpdateBool, accel_directives.file_override_enabled, zend_accel_globals, accel_globals)
307-
STD_PHP_INI_BOOLEAN("opcache.enable_cli" , "0" , PHP_INI_SYSTEM, OnUpdateBool, accel_directives.enable_cli, zend_accel_globals, accel_globals)
307+
STD_PHP_INI_BOOLEAN("opcache.enable_cli" , "1" , PHP_INI_SYSTEM, OnUpdateBool, accel_directives.enable_cli, zend_accel_globals, accel_globals)
308308
STD_PHP_INI_ENTRY("opcache.error_log" , "" , PHP_INI_SYSTEM, OnUpdateString, accel_directives.error_log, zend_accel_globals, accel_globals)
309309
STD_PHP_INI_ENTRY("opcache.restrict_api" , "" , PHP_INI_SYSTEM, OnUpdateString, accel_directives.restrict_api, zend_accel_globals, accel_globals)
310310

php.ini-development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ ldap.max_links = -1
17671767
;opcache.enable=1
17681768

17691769
; Determines if Zend OPCache is enabled for the CLI version of PHP
1770-
;opcache.enable_cli=0
1770+
;opcache.enable_cli=1
17711771

17721772
; The OPcache shared memory storage size.
17731773
;opcache.memory_consumption=128

php.ini-production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ ldap.max_links = -1
17671767
;opcache.enable=1
17681768

17691769
; Determines if Zend OPCache is enabled for the CLI version of PHP
1770-
;opcache.enable_cli=0
1770+
;opcache.enable_cli=1
17711771

17721772
; The OPcache shared memory storage size.
17731773
;opcache.memory_consumption=128

0 commit comments

Comments
 (0)