From: Michael Wallner Date: Fri, 25 Mar 2011 16:17:58 +0000 (+0000) Subject: fix error in http_get_request_body spottet by rob X-Git-Tag: RELEASE_1_7_1~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1e9ae509c5c6423114e0c6c874ee224cd999795e;p=m6w6%2Fext-http fix error in http_get_request_body spottet by rob --- diff --git a/http_api.c b/http_api.c index 4f1b7e3..1943e12 100644 --- a/http_api.c +++ b/http_api.c @@ -360,7 +360,7 @@ PHP_HTTP_API STATUS _http_get_request_body_ex(char **body, size_t *length, zend_ memcpy(*body + *length, buf, len); *length += len; (*body)[*length] = '\0'; - if (len < (int) sizeof(buf)) { + if (len < 4096) { break; } } @@ -402,7 +402,7 @@ PHP_HTTP_API php_stream *_http_get_request_body_stream(TSRMLS_D) while (0 < (len = sapi_module.read_post(buf, 4096 TSRMLS_CC))) { php_stream_write(s, buf, len); - if (len < (int) sizeof(buf)) { + if (len < 4096) { break; } }