Skip to content

Commit 4aa8678

Browse files
committed
ZEND_ACC_IMMUTABLE may be reset for closures
1 parent bfc56ed commit 4aa8678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8323,7 +8323,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
83238323
| mov r2, aword [r2]
83248324
#elif ZEND_MAP_PTR_KIND == ZEND_MAP_PTR_KIND_PTR_OR_OFFSET
83258325
if (func) {
8326-
if (func->op_array.fn_flags & ZEND_ACC_IMMUTABLE) {
8326+
if (ZEND_MAP_PTR_IS_OFFSET(func->op_array.run_time_cache)) {
83278327
| MEM_OP2_2_ZTS add, r2, aword, compiler_globals, map_ptr_base, r1
83288328
} else if (!zend_accel_in_shm(func->op_array.opcodes)) {
83298329
/* the called op_array may be not persisted yet */

0 commit comments

Comments
 (0)