Skip to content

Commit 0ed77f9

Browse files
committed
[PHP 8.4] Curl: Add CURLOPT_SERVER_RESPONSE_TIMEOUT
Commit: php/php-src#15126 PHP.Watch: [PHP 8.4: Curl: New `CURLOPT_SERVER_RESPONSE_TIMEOUT` option to replace `CURLOPT_FTP_RESPONSE_TIMEOUT`](https://php.watch/versions/8.4/CURLOPT_SERVER_RESPONSE_TIMEOUT)
1 parent e0a6e5f commit 0ed77f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

reference/curl/constants_curl_setopt.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,8 @@
971971
A timeout in seconds cURL will wait for a response from an FTP server.
972972
This option overrides <constant>CURLOPT_TIMEOUT</constant>.
973973
This option accepts any value that can be cast to a valid <type>int</type>.
974+
This option name is replaced with <constant>CURLOPT_SERVER_RESPONSE_TIMEOUT</constant>,
975+
available as of PHP 8.4.0.
974976
Available as of cURL 7.10.8 and deprecated as of cURL 7.85.0.
975977
</para>
976978
</listitem>
@@ -4428,6 +4430,22 @@
44284430
</para>
44294431
</listitem>
44304432
</varlistentry>
4433+
<varlistentry xml:id="constant.curlopt-server-response-timeout">
4434+
<term>
4435+
<constant>CURLOPT_SERVER_RESPONSE_TIMEOUT</constant>
4436+
(<type>int</type>)
4437+
</term>
4438+
<listitem>
4439+
<para>
4440+
A timeout in seconds cURL will wait for a response from an
4441+
<acronym>FTP</acronym>, <acronym>SFTP</acronym>, <acronym>IMAP</acronym>,
4442+
<acronym>SCP</acronym>, <acronym>SMTP</acronym>, or a <acronym>POP3</acronym> server.
4443+
This option replaces the existing <constant>CURLOPT_FTP_RESPONSE_TIMEOUT</constant>
4444+
option which is deprecated in cURL 7.85.0.
4445+
Available as of PHP 8.4.0.
4446+
</para>
4447+
</listitem>
4448+
</varlistentry>
44314449
<varlistentry xml:id="constant.curlopt-xoauth2-bearer">
44324450
<term>
44334451
<constant>CURLOPT_XOAUTH2_BEARER</constant>

0 commit comments

Comments
 (0)