From f34918d8b2761af5b596b1b762753ee825c19cd8 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Thu, 14 Nov 2024 02:42:05 +0700 Subject: [PATCH] [PHP 8.4] Curl: `curl_getinfo` - add `CURLINFO_POSTTRANSFER_TIME_T` Commit: php/php-src#15849 PHP.Watch: [PHP 8.4: Curl: `curl_getinfo` - `CURLINFO_POSTTRANSFER_TIME_T` support](https://php.watch/versions/8.4/CURLINFO_POSTTRANSFER_TIME_T) --- reference/curl/constants_curl_getinfo.xml | 12 ++++++++++++ reference/curl/functions/curl-getinfo.xml | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/reference/curl/constants_curl_getinfo.xml b/reference/curl/constants_curl_getinfo.xml index 43414c6d85..1155371206 100644 --- a/reference/curl/constants_curl_getinfo.xml +++ b/reference/curl/constants_curl_getinfo.xml @@ -776,4 +776,16 @@ + + + CURLINFO_POSTTRANSFER_TIME_T + (int) + + + + Time it took from the start until the last byte is sent, in microseconds. + Available as of PHP 8.4.0 and cURL 8.10.0 + + + diff --git a/reference/curl/functions/curl-getinfo.xml b/reference/curl/functions/curl-getinfo.xml index 882c7ba816..0d4e8269fe 100644 --- a/reference/curl/functions/curl-getinfo.xml +++ b/reference/curl/functions/curl-getinfo.xml @@ -178,6 +178,11 @@ is set by a previous call to curl_setopt) + + + "posttransfer_time_us" (Available as of PHP 8.4.0 and cURL 8.10.0) + + Note that private data is not included in the associative array and must be retrieved individually with the CURLINFO_PRIVATE option. @@ -195,6 +200,12 @@ + + 8.4.0 + + Introduced CURLINFO_POSTTRANSFER_TIME_T constant and posttransfer_time_us (Curl 8.10.0 or later). + + 8.3.0