From 3a4db74ee4acb9d7b9c0dfb30ee6d906e48c12c8 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 26 Sep 2017 09:20:43 +0200 Subject: [PATCH] Create $http_response_header even if not used Extensions are relying on it. --- ext/standard/http_fopen_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 7208404d1c..d803593a63 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -978,7 +978,7 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *pa if (!Z_ISUNDEF(headers)) { if (FAILURE == zend_set_local_var_str( - "http_response_header", sizeof("http_response_header")-1, &headers, 0)) { + "http_response_header", sizeof("http_response_header")-1, &headers, 1)) { zval_ptr_dtor(&headers); } } -- 2.40.0