com php-src: Create $http_response_header even if n ot used: ext/standard/http_fopen_wrapper.c

From: Date: Tue, 26 Sep 2017 07:20:43 +0000
Subject: com php-src: Create $http_response_header even if n ot used: ext/standard/http_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99539@lists.php.net to get a copy of this message
Commit: 3a4db74ee4acb9d7b9c0dfb30ee6d906e48c12c8 Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 26 Sep 2017 09:20:43 +0200 Parents: 296eb5193c7814dd97c2eb3573ab0d3b4f5d2efd Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3a4db74ee4acb9d7b9c0dfb30ee6d906e48c12c8 Log: Create $http_response_header even if not used Extensions are relying on it. Changed paths: M ext/standard/http_fopen_wrapper.c Diff: diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 7208404..d803593 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); } }

« previous php.cvs (#99539) next »