From: Dmitry Stogov Date: Wed, 8 Jul 2020 13:33:46 +0000 (+0300) Subject: Fixed tracing JIT support for $http_response_header X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad52e4cad9d4bff45a3addcf46e66fb3475edc8c;p=php Fixed tracing JIT support for $http_response_header --- diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index ca8c72ff3f..8516353902 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -343,6 +343,9 @@ static zend_always_inline int zend_jit_var_may_be_modified_indirectly(const zend if ((!op_array->function_name || (ssa->cfg.flags & ZEND_FUNC_INDIRECT_VAR_ACCESS)) && var < op_array->last_var) { return 1; + } else if (var < op_array->last_var + && zend_string_equals_literal(op_array->vars[var], "http_response_header")) { + return 1; } return 0; }