Skip to content

Commit ad52e4c

Browse files
committed
Fixed tracing JIT support for $http_response_header
1 parent 9e8a8e6 commit ad52e4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ static zend_always_inline int zend_jit_var_may_be_modified_indirectly(const zend
343343
if ((!op_array->function_name || (ssa->cfg.flags & ZEND_FUNC_INDIRECT_VAR_ACCESS))
344344
&& var < op_array->last_var) {
345345
return 1;
346+
} else if (var < op_array->last_var
347+
&& zend_string_equals_literal(op_array->vars[var], "http_response_header")) {
348+
return 1;
346349
}
347350
return 0;
348351
}

0 commit comments

Comments
 (0)