projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add first version of package2.xml
[m6w6/ext-http]
/
http_headers_api.c
diff --git
a/http_headers_api.c
b/http_headers_api.c
index e320f46b8ca2864e108c70d425464361ef86a7da..8a4ecc5591f8d9a9ee8c2b4e918a755c56facd4d 100644
(file)
--- a/
http_headers_api.c
+++ b/
http_headers_api.c
@@
-331,7
+331,8
@@
PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header
size_t header_len;
zval array;
size_t header_len;
zval array;
- Z_ARRVAL(array) = headers;
+ INIT_ZARR(array, headers);
+
if (body) {
header_len = body - header;
} else {
if (body) {
header_len = body - header;
} else {
@@
-341,7
+342,7
@@
PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header
while (header_len >= (size_t) (line - begin)) {
int value_len = 0;
while (header_len >= (size_t) (line - begin)) {
int value_len = 0;
-
+ /* note: valgrind may choke on that -- should be safe though */
switch (*line++)
{
case ':':
switch (*line++)
{
case ':':