Skip to content

Commit f34918d

Browse files
AyeshGirgias
authored andcommitted
[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)
1 parent a00f458 commit f34918d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

reference/curl/constants_curl_getinfo.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,4 +776,16 @@
776776
</simpara>
777777
</listitem>
778778
</varlistentry>
779+
<varlistentry xml:id="constant.curlinfo-posttransfer-time-t">
780+
<term>
781+
<constant>CURLINFO_POSTTRANSFER_TIME_T</constant>
782+
(<type>int</type>)
783+
</term>
784+
<listitem>
785+
<simpara>
786+
Time it took from the start until the last byte is sent, in microseconds.
787+
Available as of PHP 8.4.0 and cURL 8.10.0
788+
</simpara>
789+
</listitem>
790+
</varlistentry>
779791
</variablelist>

reference/curl/functions/curl-getinfo.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@
178178
is set by a previous call to <function>curl_setopt</function>)
179179
</simpara>
180180
</listitem>
181+
<listitem>
182+
<simpara>
183+
"posttransfer_time_us" (Available as of PHP 8.4.0 and cURL 8.10.0)
184+
</simpara>
185+
</listitem>
181186
</itemizedlist>
182187
Note that private data is not included in the associative array and must be retrieved individually with the <constant>CURLINFO_PRIVATE</constant> option.
183188
</para>
@@ -195,6 +200,12 @@
195200
</row>
196201
</thead>
197202
<tbody>
203+
<row>
204+
<entry>8.4.0</entry>
205+
<entry>
206+
Introduced <constant>CURLINFO_POSTTRANSFER_TIME_T</constant> constant and <literal>posttransfer_time_us</literal> (Curl 8.10.0 or later).
207+
</entry>
208+
</row>
198209
<row>
199210
<entry>8.3.0</entry>
200211
<entry>

0 commit comments

Comments
 (0)