Skip to content

Commit 7776b79

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 154e8b4 commit 7776b79

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

reference/curl/constants_curl_setopt.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@
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>, available as of PHP 8.4.0.
974975
Available as of cURL 7.10.8 and deprecated as of cURL 7.85.0.
975976
</para>
976977
</listitem>
@@ -4428,6 +4429,22 @@
44284429
</para>
44294430
</listitem>
44304431
</varlistentry>
4432+
<varlistentry xml:id="constant.curlopt-server-response-timeout">
4433+
<term>
4434+
<constant>CURLOPT_SERVER_RESPONSE_TIMEOUT</constant>
4435+
(<type>int</type>)
4436+
</term>
4437+
<listitem>
4438+
<para>
4439+
A timeout in seconds cURL will wait for a response from an
4440+
<acronym>FTP</acronym>, <acronym>SFTP</acronym>, <acronym>IMAP</acronym>,
4441+
<acronym>SCP</acronym>, <acronym>SMTP</acronym>, or a <acronym>POP3</acronym> server.
4442+
This option replaces the existing <constant>CURLOPT_FTP_RESPONSE_TIMEOUT</constant>
4443+
option which is deprecated in cURL 7.85.0.
4444+
Available as of PHP 8.4.0.
4445+
</para>
4446+
</listitem>
4447+
</varlistentry>
44314448
<varlistentry xml:id="constant.curlopt-xoauth2-bearer">
44324449
<term>
44334450
<constant>CURLOPT_XOAUTH2_BEARER</constant>

0 commit comments

Comments
 (0)