projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
use zend_symtable where appropriate
[m6w6/ext-http]
/
php_http_header_parser.c
diff --git
a/php_http_header_parser.c
b/php_http_header_parser.c
index c48e7c6193d990d23197308dd74710e5978898d9..c0b4515fe39ac2f5d2843476915e7fadd7c322b9 100644
(file)
--- a/
php_http_header_parser.c
+++ b/
php_http_header_parser.c
@@
-175,7
+175,7
@@
PHP_HTTP_API STATUS php_http_header_parser_parse(php_http_header_parser_t *parse
INIT_PZVAL_ARRAY(&array, headers);
php_http_pretty_key(parser->_key.str, parser->_key.len, 1, 1);
INIT_PZVAL_ARRAY(&array, headers);
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)) {
+ if (SUCCESS == zend_
symtable
_find(headers, parser->_key.str, parser->_key.len + 1, (void *) &exist)) {
convert_to_array(*exist);
add_next_index_stringl(*exist, parser->_val.str, parser->_val.len, 0);
} else {
convert_to_array(*exist);
add_next_index_stringl(*exist, parser->_val.str, parser->_val.len, 0);
} else {