Skip to content

Commit de359c0

Browse files
committed
Stop on fake frame
1 parent a0de82a commit de359c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_vm_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static int zend_jit_trace_recursive_ret_count(const zend_op_array *op_array, con
406406

407407
static int zend_jit_trace_has_recursive_ret(zend_execute_data *ex, const zend_op_array *orig_op_array, const zend_op *orig_opline, int ret_level)
408408
{
409-
while (ex != NULL && ret_level < ZEND_JIT_TRACE_MAX_RET_DEPTH) {
409+
while (ex != NULL && ex->func != NULL && ret_level < ZEND_JIT_TRACE_MAX_RET_DEPTH) {
410410
if (&ex->func->op_array == orig_op_array && ex->opline + 1 == orig_opline) {
411411
return 1;
412412
}

0 commit comments

Comments
 (0)