We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7eb58 commit 45dac39Copy full SHA for 45dac39
ext/opcache/zend_persist.c
@@ -815,7 +815,10 @@ static zend_property_info *zend_persist_property_info(zend_property_info *prop)
815
if (prop->hooks[i]) {
816
zend_op_array *hook = zend_persist_class_method(&prop->hooks[i]->op_array, ce);
817
#ifdef HAVE_JIT
818
- if (JIT_G(on) && JIT_G(opt_level) <= ZEND_JIT_LEVEL_OPT_FUNCS) {
+ if (JIT_G(on)
819
+ && JIT_G(opt_level) <= ZEND_JIT_LEVEL_OPT_FUNCS
820
+ && (!ZCG(current_persistent_script)
821
+ || !ZCG(current_persistent_script)->corrupted)) {
822
if (hook->scope == ce && !(hook->fn_flags & ZEND_ACC_TRAIT_CLONE)) {
823
zend_jit_op_array(hook, ZCG(current_persistent_script) ? &ZCG(current_persistent_script)->script : NULL);
824
}
0 commit comments