X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=88bb1b2b51404f3fb507c21f700fdcaf4598d894;hp=b08a51a0b353607694446e77b4f490e6bd62cacd;hb=054426ee13e1680245998c59f571effca5ceda4b;hpb=2811a2111f519ee55e05c4084903a34dc0c3b818 diff --git a/http_api.c b/http_api.c index b08a51a..88bb1b2 100644 --- a/http_api.c +++ b/http_api.c @@ -1426,7 +1426,7 @@ PHP_HTTP_API STATUS _http_split_response_ex( char *response, char *body = NULL; char *header = response; - while ((response - header + 4) < response_len) { + while (0 < (response_len - (response - header + 4))) { if ( (*response++ == '\r') && (*response++ == '\n') && (*response++ == '\r') && @@ -1614,9 +1614,9 @@ PHP_HTTP_API STATUS _http_auth_credentials(char **user, char **pass TSRMLS_DC) /* }}} */ #ifndef ZEND_ENGINE_2 -/* {{{ php_url_encode_hash +/* {{{ php_url_encode_hash Author: Sarah Golemon */ -PHP_HTTP_API int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, +PHP_HTTP_API STATUS php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, const char *num_prefix, int num_prefix_len, const char *key_prefix, int key_prefix_len, const char *key_suffix, int key_suffix_len, @@ -1786,5 +1786,4 @@ PHP_HTTP_API int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, * End: * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 - */ - + */ \ No newline at end of file