Skip to content

Commit b25a1a7

Browse files
committed
Fix zend_runtime_jit(): Return the original opline
1 parent 64be98e commit b25a1a7

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
@@ -3049,6 +3049,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_runtime_jit(ZEND_OPCODE_HANDLE
30493049
#if GCC_GLOBAL_REGS
30503050
zend_execute_data *execute_data;
30513051
zend_op *opline;
3052+
#else
3053+
const zend_op *orig_opline = opline;
30523054
#endif
30533055

30543056
execute_data = EG(current_execute_data);
@@ -3094,7 +3096,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_runtime_jit(ZEND_OPCODE_HANDLE
30943096
#if GCC_GLOBAL_REGS
30953097
return; // ZEND_VM_CONTINUE
30963098
#else
3097-
return op_array->opcodes; // ZEND_VM_CONTINUE
3099+
return orig_opline; // ZEND_VM_CONTINUE
30983100
#endif
30993101
}
31003102

0 commit comments

Comments
 (0)