From: Remi Collet Date: Fri, 25 Feb 2022 13:48:07 +0000 (+0100) Subject: Fix: curl_easy_setopt expects a curl_write_callback argument for this option X-Git-Tag: v4.2.3~5^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=244c5604d85ba4d4bf5453d02aba1c5e267583d7;p=m6w6%2Fext-http Fix: curl_easy_setopt expects a curl_write_callback argument for this option --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 8c38c6c..46502ba 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -313,14 +313,14 @@ static int php_http_curle_raw_callback(CURL *ch, curl_infotype type, char *data, return 0; } -static int php_http_curle_header_callback(char *data, size_t n, size_t l, void *arg) +static size_t php_http_curle_header_callback(char *data, size_t n, size_t l, void *arg) { php_http_client_curl_handler_t *h = arg; return php_http_buffer_append(&h->response.headers, data, n * l); } -static int php_http_curle_body_callback(char *data, size_t n, size_t l, void *arg) +static size_t php_http_curle_body_callback(char *data, size_t n, size_t l, void *arg) { php_http_client_curl_handler_t *h = arg;