Skip to content

Commit ddd1a8f

Browse files
committed
Try fixing JIT issues?
1 parent 206cfcc commit ddd1a8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17087,7 +17087,11 @@ static ir_ref jit_frameless_observer(zend_jit_ctx *jit, int checked_stack, const
1708717087
uint32_t offset = EX_NUM_TO_VAR(i);
1708817088
zend_jit_addr var_addr = ZEND_ADDR_MEM_ZVAL(ZREG_RX, offset);
1708917089

17090+
// JIT_G(current_frame) is untouched for frameless calls. We'll have to NULL it so that it's not considered here.
17091+
zend_jit_trace_stack_frame *jit_current_frame = JIT_G(current_frame);
17092+
JIT_G(current_frame) = NULL;
1709017093
jit_ZVAL_PTR_DTOR(jit, var_addr, MAY_BE_ANY|MAY_BE_RC1|MAY_BE_RCN, 0, opline);
17094+
JIT_G(current_frame) = jit_current_frame;
1709117095
}
1709217096
}
1709317097

0 commit comments

Comments
 (0)