]> granicus.if.org Git - php/commitdiff
Don't force rebuild of symbol table, when populating $http_response_header variable...
authorDmitry Stogov <dmitry@zend.com>
Wed, 28 Oct 2020 09:59:00 +0000 (12:59 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 28 Oct 2020 09:59:00 +0000 (12:59 +0300)
NEWS
UPGRADING
ext/standard/http_fopen_wrapper.c

diff --git a/NEWS b/NEWS
index 6030664f35c266b9f41e10522bc29e2abe2c76df..1c3eee15354b374a0c28cfa9472eb5111fc085c1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? ????, PHP 8.0.0RC4
 
+- Standard:
+
+  . Don't force rebuild of symbol table, when populating $http_response_header
+    variable by the HTTP stream wrapper. (Dmitry)
 
 29 Oct 2020, PHP 8.0.0RC3
 
index 1a270ba41555ff7b508a20a91adbe0d75688eed8..579424fbef4ae46a4105060bc90b1be4ac7aaf88 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -617,6 +617,8 @@ PHP 8.0 UPGRADE NOTES
   . substr(), mb_substr(), iconv_substr() and grapheme_substr() now consistently
     clamp out-of-bounds offsets to the string boundary. Previously, false was
     returned instead of the empty string in some cases.
+  . Populating $http_response_header variable by the HTTP stream wrapper
+    doesn't force rebuilding of symbol table anymore.
 
 - Sysvmsg:
   . msg_get_queue() will now return an SysvMessageQueue object rather than a
index 50758ad0f4a67f1922050f17bfadc17fdd21a46f..d865d7e2f97ca6e1a8e863e0af8504781a96982d 100644 (file)
@@ -981,7 +981,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, 1)) {
+                               "http_response_header", sizeof("http_response_header")-1, &headers, 0)) {
                        zval_ptr_dtor(&headers);
                }
        }