Fix: curl_easy_setopt expects a curl_write_callback argument for this option
authorRemi Collet <remi@remirepo.net>
Fri, 25 Feb 2022 13:48:07 +0000 (14:48 +0100)
committerRemi Collet <remi@php.net>
Fri, 25 Feb 2022 13:48:07 +0000 (14:48 +0100)
src/php_http_client_curl.c

index 8c38c6c60f287d634b80f89e50ad69ed3b0fc45c..46502bad1eb9b532b67e9cd12400c5bfad7be412 100644 (file)
@@ -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;