@@ -11431,6 +11431,13 @@ static int zend_jit_return(dasm_State **Dst, const zend_op *opline, const zend_o
11431
11431
return_value_used = -1;
11432
11432
}
11433
11433
11434
+ if (ZEND_OBSERVER_ENABLED) {
11435
+ | LOAD_ZVAL_ADDR FCARG2a, op1_addr
11436
+ | mov FCARG1a, FP
11437
+ | SET_EX_OPLINE opline, r0
11438
+ | EXT_CALL zend_observer_fcall_end, r0
11439
+ }
11440
+
11434
11441
// if (!EX(return_value))
11435
11442
if (Z_MODE(op1_addr) == IS_REG && Z_REG(op1_addr) == ZREG_R1) {
11436
11443
if (return_value_used != 0) {
@@ -11497,12 +11504,6 @@ static int zend_jit_return(dasm_State **Dst, const zend_op *opline, const zend_o
11497
11504
11498
11505
if (return_value_used == 0) {
11499
11506
|9:
11500
- if (ZEND_OBSERVER_ENABLED) {
11501
- | xor FCARG2a, FCARG2a
11502
- | mov FCARG1a, FP
11503
- | SET_EX_OPLINE opline, r0
11504
- | EXT_CALL zend_observer_fcall_end, r0
11505
- }
11506
11507
return 1;
11507
11508
}
11508
11509
@@ -11571,12 +11572,6 @@ static int zend_jit_return(dasm_State **Dst, const zend_op *opline, const zend_o
11571
11572
}
11572
11573
11573
11574
|9:
11574
- if (ZEND_OBSERVER_ENABLED) {
11575
- | LOAD_ZVAL_ADDR FCARG2a, ret_addr
11576
- | mov FCARG1a, FP
11577
- | SET_EX_OPLINE opline, r0
11578
- | EXT_CALL zend_observer_fcall_end, r0
11579
- }
11580
11575
return 1;
11581
11576
}
11582
11577
0 commit comments