Skip to content

Commit 5cdc4c9

Browse files
Sjordlacatoire
andauthored
ext/curl: Document more curl deprecations (#5678)
* Document more curl deprecations Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
1 parent b8147b7 commit 5cdc4c9

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

reference/curl/constants_curl_getinfo.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
</term>
113113
<listitem>
114114
<simpara>
115-
Content length of download, read from Content-Length: field
115+
Content length of download, read from Content-Length: field. Deprecated since cURL 7.55.0. Use <constant>CURLINFO_CONTENT_LENGTH_DOWNLOAD_T</constant> instead.
116116
</simpara>
117117
</listitem>
118118
</varlistentry>
@@ -135,7 +135,7 @@
135135
</term>
136136
<listitem>
137137
<simpara>
138-
Specified size of upload
138+
Specified size of upload. Deprecated since cURL 7.55.0. Use <constant>CURLINFO_CONTENT_LENGTH_UPLOAD_T</constant> instead.
139139
</simpara>
140140
</listitem>
141141
</varlistentry>
@@ -453,7 +453,7 @@
453453
<listitem>
454454
<simpara>
455455
The protocol used in the last HTTP connection. The returned value will be exactly one of the <constant>CURLPROTO_<replaceable>*</replaceable></constant> values.
456-
Available as of PHP 7.3.0 and cURL 7.52.0
456+
Available as of PHP 7.3.0 and cURL 7.52.0. Deprecated since cURL 7.85.0. Use <constant>CURLINFO_SCHEME</constant> instead.
457457
</simpara>
458458
</listitem>
459459
</varlistentry>
@@ -671,7 +671,7 @@
671671
</term>
672672
<listitem>
673673
<simpara>
674-
Total number of bytes downloaded
674+
Total number of bytes downloaded. Deprecated since cURL 7.55.0. Use <constant>CURLINFO_SIZE_DOWNLOAD_T</constant> instead.
675675
</simpara>
676676
</listitem>
677677
</varlistentry>
@@ -694,7 +694,7 @@
694694
</term>
695695
<listitem>
696696
<simpara>
697-
Total number of bytes uploaded
697+
Total number of bytes uploaded. Deprecated since cURL 7.55.0. Use <constant>CURLINFO_SIZE_UPLOAD_T</constant> instead.
698698
</simpara>
699699
</listitem>
700700
</varlistentry>
@@ -717,7 +717,7 @@
717717
</term>
718718
<listitem>
719719
<simpara>
720-
Average download speed
720+
Average download speed. Deprecated since cURL 7.55.0. Use <constant>CURLINFO_SPEED_DOWNLOAD_T</constant> instead.
721721
</simpara>
722722
</listitem>
723723
</varlistentry>
@@ -740,7 +740,7 @@
740740
</term>
741741
<listitem>
742742
<simpara>
743-
Average upload speed
743+
Average upload speed. Deprecated since cURL 7.55.0. Use <constant>CURLINFO_SPEED_UPLOAD_T</constant> instead.
744744
</simpara>
745745
</listitem>
746746
</varlistentry>

reference/curl/constants_curl_setopt.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@
15281528
<literal>private</literal> is used.
15291529
Setting this option to &null; will disable kerberos support for FTP.
15301530
Defaults to &null;.
1531-
Available as of cURL 7.16.4.
1531+
Available as of cURL 7.16.4 and deprecated as of cURL 8.17.0.
15321532
</para>
15331533
</listitem>
15341534
</varlistentry>
@@ -2280,13 +2280,13 @@
22802280
(<type>int</type>)
22812281
</term>
22822282
<listitem>
2283-
<para>
2283+
<simpara>
22842284
Bitmask of <constant>CURLPROTO_<replaceable>*</replaceable></constant> values.
22852285
If used, this bitmask limits what protocols cURL may use in the transfer.
22862286
Defaults to <constant>CURLPROTO_ALL</constant>, ie. cURL will accept all protocols it supports.
2287-
See also <constant>CURLOPT_REDIR_PROTOCOLS</constant>.
2287+
See also <constant>CURLOPT_REDIR_PROTOCOLS_STR</constant>.
22882288
Available as of cURL 7.19.4 and deprecated as of cURL 7.85.0.
2289-
</para>
2289+
</simpara>
22902290
</listitem>
22912291
</varlistentry>
22922292
<varlistentry xml:id="constant.curlopt-protocols-str">
@@ -3723,12 +3723,12 @@
37233723
(<type>int</type>)
37243724
</term>
37253725
<listitem>
3726-
<para>
3726+
<simpara>
37273727
&true; to enable and &false; to disable TLS false start
37283728
which is a mode where a TLS client starts sending application data
37293729
before verifying the server's <literal>Finished</literal> message.
3730-
Available as of PHP 7.0.7 and cURL 7.42.0.
3731-
</para>
3730+
Available as of PHP 7.0.7 and cURL 7.42.0. Deprecated since cURL 8.15.0.
3731+
</simpara>
37323732
</listitem>
37333733
</varlistentry>
37343734
<varlistentry xml:id="constant.curlopt-ssl-options">

0 commit comments

Comments
 (0)