Skip to content

Commit

Permalink
ext/curl: libcurl CURLOPT_{FTP_RESPONSE_TIMEOUT,ENCODING} replaceme…
Browse files Browse the repository at this point in the history
…nts (#15126)
  • Loading branch information
Ayesh authored Aug 31, 2024
1 parent 82c504f commit a8df3d1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ PHP NEWS
EAI_SYSTEM not found). (nielsdos)
. Implemented asymmetric visibility for properties. (ilutov)

- Curl:
. Added CURLOPT_SERVER_RESPONSE_TIMEOUT, which was formerly known as
CURLOPT_FTP_RESPONSE_TIMEOUT. (Ayesh Karunaratne)

- Date:
. Fixed bug GH-13773 (DatePeriod not taking into account microseconds for end
date). (Mark Bennewitz, Derick)
Expand Down
3 changes: 3 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ PHP 8.4 UPGRADE NOTES
supported (true) or not (false).
. Added CURL_HTTP_VERSION_3 and CURL_HTTP_VERSION_3ONLY constants (available
since libcurl 7.66 and 7.88) as available options for CURLOPT_HTTP_VERSION.
. Added CURLOPT_SERVER_RESPONSE_TIMEOUT, which was formerly known as
CURLOPT_FTP_RESPONSE_TIMEOUT. Both constants hold the same value.

- Date:
. Added static methods
Expand Down Expand Up @@ -996,6 +998,7 @@ PHP 8.4 UPGRADE NOTES
. CURL_HTTP_VERSION_3.
. CURL_HTTP_VERSION_3ONLY.
. CURL_TCP_KEEPCNT
. CURLOPT_SERVER_RESPONSE_TIMEOUT.

- Intl:
. The IntlDateFormatter class exposes now the new PATTERN constant
Expand Down
11 changes: 9 additions & 2 deletions ext/curl/curl.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
const CURLOPT_EGDSOCKET = UNKNOWN;
/**
* @var int
* @cvalue CURLOPT_ENCODING
* @cvalue CURLOPT_ACCEPT_ENCODING
* @alias CURLOPT_ACCEPT_ENCODING
*/
const CURLOPT_ENCODING = UNKNOWN;
/**
Expand Down Expand Up @@ -1291,9 +1292,15 @@
const CURLINFO_PROXYAUTH_AVAIL = UNKNOWN;
/**
* @var int
* @cvalue CURLOPT_FTP_RESPONSE_TIMEOUT
* @cvalue CURLOPT_SERVER_RESPONSE_TIMEOUT
* @alias CURLOPT_SERVER_RESPONSE_TIMEOUT
*/
const CURLOPT_FTP_RESPONSE_TIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue CURLOPT_SERVER_RESPONSE_TIMEOUT
*/
const CURLOPT_SERVER_RESPONSE_TIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue CURLOPT_IPRESOLVE
Expand Down
7 changes: 4 additions & 3 deletions ext/curl/curl_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
case CURLOPT_HTTPAUTH:
case CURLOPT_FTP_CREATE_MISSING_DIRS:
case CURLOPT_PROXYAUTH:
case CURLOPT_FTP_RESPONSE_TIMEOUT:
case CURLOPT_SERVER_RESPONSE_TIMEOUT:
case CURLOPT_IPRESOLVE:
case CURLOPT_MAXFILESIZE:
case CURLOPT_TCP_NODELAY:
Expand Down

0 comments on commit a8df3d1

Please sign in to comment.