summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-11-11 14:54:54 +0300
committerDmitry Stogov <dmitry@zend.com>2020-11-11 14:54:54 +0300
commitde359c00b41477e80f587612898a957500ff2c0f (patch)
tree7c17653c9260da1b5101345e5452b9753156f211
parenta0de82ad752920ab46fc909621e96c7cca8c19da (diff)
downloadphp-git-de359c00b41477e80f587612898a957500ff2c0f.tar.gz
Stop on fake frame
-rw-r--r--ext/opcache/jit/zend_jit_vm_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c
index 898b7c1f42..6573200430 100644
--- a/ext/opcache/jit/zend_jit_vm_helpers.c
+++ b/ext/opcache/jit/zend_jit_vm_helpers.c
@@ -406,7 +406,7 @@ static int zend_jit_trace_recursive_ret_count(const zend_op_array *op_array, con
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)
{
- while (ex != NULL && ret_level < ZEND_JIT_TRACE_MAX_RET_DEPTH) {
+ while (ex != NULL && ex->func != NULL && ret_level < ZEND_JIT_TRACE_MAX_RET_DEPTH) {
if (&ex->func->op_array == orig_op_array && ex->opline + 1 == orig_opline) {
return 1;
}