summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-05-25 17:45:13 +0300
committerDmitry Stogov <dmitry@zend.com>2020-05-25 17:45:13 +0300
commit4aa8678306f055e1ee992190fc17816c91492dad (patch)
tree24481bba009da2dc4a40831121cc2bec78d3704b
parentbfc56ed511dd2d9bc03111149b58ee708c33743c (diff)
downloadphp-git-4aa8678306f055e1ee992190fc17816c91492dad.tar.gz
ZEND_ACC_IMMUTABLE may be reset for closures
-rw-r--r--ext/opcache/jit/zend_jit_x86.dasc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index 867ffbd74b..11179f696b 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -8323,7 +8323,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
| mov r2, aword [r2]
#elif ZEND_MAP_PTR_KIND == ZEND_MAP_PTR_KIND_PTR_OR_OFFSET
if (func) {
- if (func->op_array.fn_flags & ZEND_ACC_IMMUTABLE) {
+ if (ZEND_MAP_PTR_IS_OFFSET(func->op_array.run_time_cache)) {
| MEM_OP2_2_ZTS add, r2, aword, compiler_globals, map_ptr_base, r1
} else if (!zend_accel_in_shm(func->op_array.opcodes)) {
/* the called op_array may be not persisted yet */