Skip to content

Commit 98bacde

Browse files
committed
Non-JIT passes a pointer to a temp zval into zend_observer_fcall_end
1 parent 7b8756d commit 98bacde

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

+1
Original file line numberDiff line numberDiff line change
@@ -10943,6 +10943,7 @@ static int zend_jit_return(dasm_State **Dst, const zend_op *opline, const zend_o
1094310943
if (Z_REFCOUNTED_P(zv)) {
1094410944
| ADDREF_CONST zv, REG0, TMP1
1094510945
}
10946+
op1_addr = ret_addr;
1094610947
} else if (opline->op1_type == IS_TMP_VAR) {
1094710948
| ZVAL_COPY_VALUE ret_addr, MAY_BE_ANY, op1_addr, op1_info, ZREG_REG0, ZREG_REG2, ZREG_TMP1, ZREG_TMP2, ZREG_FPR0
1094810949
} else if (opline->op1_type == IS_CV) {

ext/opcache/jit/zend_jit_x86.dasc

+1
Original file line numberDiff line numberDiff line change
@@ -11656,6 +11656,7 @@ static int zend_jit_return(dasm_State **Dst, const zend_op *opline, const zend_o
1165611656
if (Z_REFCOUNTED_P(zv)) {
1165711657
| ADDREF_CONST zv, r0
1165811658
}
11659+
op1_addr = ret_addr;
1165911660
} else if (opline->op1_type == IS_TMP_VAR) {
1166011661
| ZVAL_COPY_VALUE ret_addr, MAY_BE_ANY, op1_addr, op1_info, ZREG_R0, ZREG_R2
1166111662
} else if (opline->op1_type == IS_CV) {

0 commit comments

Comments
 (0)