1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

[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)
This commit is contained in:
Ayesh Karunaratne
2024-11-14 02:42:05 +07:00
committed by Gina Peter Banyard
parent a00f458936
commit f34918d8b2
2 changed files with 23 additions and 0 deletions

View File

@@ -776,4 +776,16 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.curlinfo-posttransfer-time-t">
<term>
<constant>CURLINFO_POSTTRANSFER_TIME_T</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
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
</simpara>
</listitem>
</varlistentry>
</variablelist>

View File

@@ -178,6 +178,11 @@
is set by a previous call to <function>curl_setopt</function>)
</simpara>
</listitem>
<listitem>
<simpara>
"posttransfer_time_us" (Available as of PHP 8.4.0 and cURL 8.10.0)
</simpara>
</listitem>
</itemizedlist>
Note that private data is not included in the associative array and must be retrieved individually with the <constant>CURLINFO_PRIVATE</constant> option.
</para>
@@ -195,6 +200,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Introduced <constant>CURLINFO_POSTTRANSFER_TIME_T</constant> constant and <literal>posttransfer_time_us</literal> (Curl 8.10.0 or later).
</entry>
</row>
<row>
<entry>8.3.0</entry>
<entry>