com php-src: Fix $http_response_header creation: ex t/standard/http_fopen_wrapper.c
| From: | Nikita Popov | Date: | Thu, 29 May 2014 10:51:03 +0000 |
| Subject: | com php-src: Fix $http_response_header creation: ex t/standard/http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78631@lists.php.net to get a copy of this message | ||
Commit: ccd9dab4c6f2d2df313b40705cf00a395fa4b080
Author: Nikita Popov <nikic@php.net> Thu, 29 May 2014 12:51:03 +0200
Parents: d1ae74a1a56bccc9a57fbb54f90db63746eaa92f
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ccd9dab4c6f2d2df313b40705cf00a395fa4b080
Log:
Fix $http_response_header creation
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 931857e..7cfc07e 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -644,7 +644,7 @@ finish:
zend_set_local_var_str("http_response_header",
sizeof("http_response_header")-1, &ztmp, 0 TSRMLS_CC);
}
- response_header = zend_hash_str_find(&EG(active_symbol_table)->ht,
"http_response_header", sizeof("http_response_header")-1);
+ response_header = zend_hash_str_find_ind(&EG(active_symbol_table)->ht,
"http_response_header", sizeof("http_response_header")-1);
if (!php_stream_eof(stream)) {
size_t tmp_line_len;