[php-src] PR #22408: ext/curl: add support for `CURLINFO_SIZE_DELIVERED` (libcurl >= 8.20.0)
| From: | Ayesh | Date: | Tue, 23 Jun 2026 10:21:33 +0000 |
| Subject: | [php-src] PR #22408: ext/curl: add support for `CURLINFO_SIZE_DELIVERED` (libcurl >= 8.20.0) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36565@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22408
Author: Ayesh
Adds support for
CURLINFO_SIZE_DELIVERED when built with libcurl >= 8.20.0.
In curl_getinfo(), the size_delivered key or the direct return value when
the $option parameter is set to CURLINFO_SIZE_DELIVERED returns the number
of bytes delivered.
For transfers that do not use compression (CURLOPT_ACCEPT_ENCODING), this value will be
the same as CURLINFO_SIZE_DOWNLOAD. For encoded transfers, the
CURLINFO_SIZE_DELIVERED value will be the uncompressed size while
CURLINFO_SIZE_DOWNLOAD will be the compressed size over network.