Skip to content

Commit 2693f79

Browse files
committed
Don't force rebuild of symbol table, when populating $http_response_header variable by the HTTP stream wrapper
1 parent 47a5620 commit 2693f79

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.0.0RC4
44

5+
- Standard:
6+
7+
. Don't force rebuild of symbol table, when populating $http_response_header
8+
variable by the HTTP stream wrapper. (Dmitry)
59

610
29 Oct 2020, PHP 8.0.0RC3
711

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,8 @@ PHP 8.0 UPGRADE NOTES
617617
. substr(), mb_substr(), iconv_substr() and grapheme_substr() now consistently
618618
clamp out-of-bounds offsets to the string boundary. Previously, false was
619619
returned instead of the empty string in some cases.
620+
. Populating $http_response_header variable by the HTTP stream wrapper
621+
doesn't force rebuilding of symbol table anymore.
620622

621623
- Sysvmsg:
622624
. msg_get_queue() will now return an SysvMessageQueue object rather than a

ext/standard/http_fopen_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *pa
981981

982982
if (!Z_ISUNDEF(headers)) {
983983
if (FAILURE == zend_set_local_var_str(
984-
"http_response_header", sizeof("http_response_header")-1, &headers, 1)) {
984+
"http_response_header", sizeof("http_response_header")-1, &headers, 0)) {
985985
zval_ptr_dtor(&headers);
986986
}
987987
}

0 commit comments

Comments
 (0)