From: Michael Wallner Date: Fri, 3 Jun 2011 08:58:52 +0000 (+0000) Subject: * fix parsing mulitple response headers with same name X-Git-Tag: DEV_2-before-client~109 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7e02de6a69419be97512aad2314bc25180f7555e;p=m6w6%2Fext-http * fix parsing mulitple response headers with same name --- diff --git a/php_http_header_parser.c b/php_http_header_parser.c index 69a4191..e6dca1e 100644 --- a/php_http_header_parser.c +++ b/php_http_header_parser.c @@ -177,7 +177,7 @@ PHP_HTTP_API STATUS php_http_header_parser_parse(php_http_header_parser_t *parse php_http_pretty_key(parser->_key.str, parser->_key.len, 1, 1); if (SUCCESS == zend_hash_find(headers, parser->_key.str, parser->_key.len + 1, (void *) &exist)) { convert_to_array(*exist); - add_next_index_stringl(&array, parser->_val.str, parser->_val.len, 0); + add_next_index_stringl(*exist, parser->_val.str, parser->_val.len, 0); } else { add_assoc_stringl_ex(&array, parser->_key.str, parser->_key.len + 1, parser->_val.str, parser->_val.len, 0); }