projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- ditch warnings
[m6w6/ext-http]
/
http_headers_api.c
diff --git
a/http_headers_api.c
b/http_headers_api.c
index b2a2081e18ae79bd5cf8a1c601befd238972a08f..d573ab27b601aa4d0533cf9d28cc46b70b0adc9c 100644
(file)
--- a/
http_headers_api.c
+++ b/
http_headers_api.c
@@
-254,7
+254,11
@@
PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header
zval array;
Z_ARRVAL(array) = headers;
zval array;
Z_ARRVAL(array) = headers;
- header_len = body ? body - header : strlen(header) + 1;
+ if (body) {
+ header_len = body - header;
+ } else {
+ header_len = strlen(header) + 1;
+ }
line = header;
while (header_len >= (size_t) (line - begin)) {
line = header;
while (header_len >= (size_t) (line - begin)) {