We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f150b02 commit 3d4e23aCopy full SHA for 3d4e23a
ext/opcache/zend_persist.c
@@ -1144,7 +1144,9 @@ zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script
1144
1145
#ifdef HAVE_JIT
1146
if (ZCG(jit_enabled) && for_shm) {
1147
- if (ZEND_JIT_LEVEL(ZCG(accel_directives).jit) >= ZEND_JIT_LEVEL_OPT_SCRIPT) {
+ if (ZEND_JIT_LEVEL(ZCG(accel_directives).jit) >= ZEND_JIT_LEVEL_OPT_SCRIPT &&
1148
+ (ZEND_JIT_TRIGGER(ZCG(accel_directives).jit) == ZEND_JIT_ON_SCRIPT_LOAD ||
1149
+ ZEND_JIT_TRIGGER(ZCG(accel_directives).jit) == ZEND_JIT_ON_DOC_COMMENT)) {
1150
zend_jit_script(&script->script);
1151
}
1152
zend_jit_protect();
0 commit comments