Skip to content

Commit 42f60ba

Browse files
committed
Fix zend_runtime_jit(): Return the original opline
1 parent e00982e commit 42f60ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3079,6 +3079,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_runtime_jit(ZEND_OPCODE_HANDLE
30793079
#if GCC_GLOBAL_REGS
30803080
zend_execute_data *execute_data;
30813081
zend_op *opline;
3082+
#else
3083+
const zend_op *orig_opline = opline;
30823084
#endif
30833085

30843086
execute_data = EG(current_execute_data);
@@ -3124,7 +3126,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_runtime_jit(ZEND_OPCODE_HANDLE
31243126
#if GCC_GLOBAL_REGS
31253127
return; // ZEND_VM_CONTINUE
31263128
#else
3127-
return op_array->opcodes; // ZEND_VM_CONTINUE
3129+
return orig_opline; // ZEND_VM_CONTINUE
31283130
#endif
31293131
}
31303132

0 commit comments

Comments
 (0)