From: Dmitry Stogov Date: Tue, 28 Jul 2020 20:31:58 +0000 (+0300) Subject: Fixed incorrect reuse of exit_point X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99ee73e6a94c847cee7130928cc3b6acddece904;p=php Fixed incorrect reuse of exit_point --- diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index d894b50f18..6ef493e3ed 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -174,7 +174,8 @@ static uint32_t zend_jit_trace_get_exit_point(const zend_op *from_opline, const && memcmp(t->stack_map + t->exit_info[i].stack_offset, stack, stack_size * sizeof(zend_jit_trace_stack)) == 0)) { stack_offset = t->exit_info[i].stack_offset; if (t->exit_info[i].opline == to_opline - && t->exit_info[i].flags == flags) { + && t->exit_info[i].flags == flags + && t->exit_info[i].stack_size == stack_size) { return i; } }