- fixed a gotcha in http_chunked_decode (-size_t is always > 0)
[m6w6/ext-http] / php_http_api.h
index fc34e87a1afeaf5b08d0fa4c6deb15e5b481d49b..826f6cd198572b66b0192f8c26f46e431513f0ea 100644 (file)
@@ -84,7 +84,7 @@ static inline const char *_http_locate_body(const char *message)
 }
 
 #define http_locate_eol _http_locate_eol
-static inline const char *_http_locate_eol(const char *line, size_t *eol_len)
+static inline const char *_http_locate_eol(const char *line, int *eol_len)
 {
        const char *eol = strpbrk(line, "\r\n");