Commit 61148575e49 for php.net
commit 61148575e4984d5cbabba68ff5f2d6bb4e1a9c1c
Author: Dmitry Stogov <dmitry@php.net>
Date: Tue May 12 14:28:19 2026 +0300
Fix COMMUNITY_asan failure on src/Symfony/Component/HttpClient (#22021)
diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c
index 32096741905..1237d1b7a42 100644
--- a/ext/opcache/jit/zend_jit_trace.c
+++ b/ext/opcache/jit/zend_jit_trace.c
@@ -8479,7 +8479,7 @@ int ZEND_FASTCALL zend_jit_trace_hot_side(zend_execute_data *execute_data, uint3
do {
ex = ex->prev_execute_data;
n++;
- } while (ex && zend_jit_traces[root].op_array != &ex->func->op_array);
+ } while (ex && (!ex->func || zend_jit_traces[root].op_array != &ex->func->op_array));
if (ex && n <= ZEND_JIT_TRACE_MAX_RET_DEPTH) {
ret_depth = n;
}