Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions ext/curl/curl.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@
* @cvalue CURLOPT_DNS_USE_GLOBAL_CACHE
*/
const CURLOPT_DNS_USE_GLOBAL_CACHE = UNKNOWN;
#if LIBCURL_VERSION_NUM >= 0x080800 /* Available since 8.8.0 */
/**
* @var int
* @cvalue CURLOPT_ECH
*/
const CURLOPT_ECH = UNKNOWN;
#endif
/**
* @var int
* @cvalue CURLOPT_EGDSOCKET
Expand Down Expand Up @@ -143,6 +150,13 @@
* @cvalue CURLOPT_FTP_USE_EPSV
*/
const CURLOPT_FTP_USE_EPSV = UNKNOWN;
#if LIBCURL_VERSION_NUM >= 0x080200 /* Available since 8.2.0 */
/**
* @var int
* @cvalue CURLOPT_HAPROXY_CLIENT_IP
*/
const CURLOPT_HAPROXY_CLIENT_IP = UNKNOWN;
#endif
/**
* @var int
* @cvalue CURLOPT_HEADER
Expand Down Expand Up @@ -1383,6 +1397,13 @@
* @cvalue CURLOPT_SERVER_RESPONSE_TIMEOUT
*/
const CURLOPT_SERVER_RESPONSE_TIMEOUT = UNKNOWN;
#if LIBCURL_VERSION_NUM >= 0x080600 /* Available since 8.6.0 */
/**
* @var int
* @cvalue CURLOPT_SERVER_RESPONSE_TIMEOUT_MS
*/
const CURLOPT_SERVER_RESPONSE_TIMEOUT_MS = UNKNOWN;
#endif
/**
* @var int
* @cvalue CURLOPT_IPRESOLVE
Expand Down Expand Up @@ -3272,11 +3293,31 @@
#endif

#if LIBCURL_VERSION_NUM >= 0x074500 /* Available since 7.69.0 */
# if LIBCURL_VERSION_NUM >= 0x080200 /* renamed in 8.2.0 */
/**
* @var int
* @cvalue CURLOPT_MAIL_RCPT_ALLOWFAILS
*/
const CURLOPT_MAIL_RCPT_ALLOWFAILS = UNKNOWN;
/**
* @var int
* @cvalue CURLOPT_MAIL_RCPT_ALLOWFAILS
*/
#[\Deprecated(since: '8.7', message: 'renamed to CURLOPT_MAIL_RCPT_ALLOWFAILS')]
const CURLOPT_MAIL_RCPT_ALLLOWFAILS = UNKNOWN;
# else
/**
* @var int
* @cvalue CURLOPT_MAIL_RCPT_ALLLOWFAILS
*/
const CURLOPT_MAIL_RCPT_ALLOWFAILS = UNKNOWN;
/**
* @var int
* @cvalue CURLOPT_MAIL_RCPT_ALLLOWFAILS
*/
#[\Deprecated(since: '8.7', message: 'renamed to CURLOPT_MAIL_RCPT_ALLOWFAILS')]
const CURLOPT_MAIL_RCPT_ALLLOWFAILS = UNKNOWN;
# endif
#endif

#if LIBCURL_VERSION_NUM >= 0x074600 /* Available since 7.70.0 */
Expand Down
18 changes: 16 additions & 2 deletions ext/curl/curl_arginfo.h

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

11 changes: 10 additions & 1 deletion ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
case CURLOPT_MAXAGE_CONN:
#endif
#if LIBCURL_VERSION_NUM >= 0x074500 /* Available since 7.69.0 */
case CURLOPT_MAIL_RCPT_ALLLOWFAILS:
case CURLOPT_MAIL_RCPT_ALLOWFAILS:
#endif
#if LIBCURL_VERSION_NUM >= 0x074a00 /* Available since 7.74.0 */
case CURLOPT_HSTS_CTRL:
Expand All @@ -1802,6 +1802,9 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
case CURLOPT_CA_CACHE_TIMEOUT:
case CURLOPT_QUICK_EXIT:
#endif
#if LIBCURL_VERSION_NUM >= 0x080600 /* Available since 8.6.0 */
case CURLOPT_SERVER_RESPONSE_TIMEOUT_MS:
#endif
#if LIBCURL_VERSION_NUM >= 0x080900 /* Available since 8.9.0 */
case CURLOPT_TCP_KEEPCNT:
#endif
Expand Down Expand Up @@ -1898,6 +1901,12 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
#if LIBCURL_VERSION_NUM >= 0x075500 /* Available since 7.85.0 */
case CURLOPT_PROTOCOLS_STR:
case CURLOPT_REDIR_PROTOCOLS_STR:
#endif
#if LIBCURL_VERSION_NUM >= 0x080200 /* Available since 8.2.0 */
case CURLOPT_HAPROXY_CLIENT_IP:
#endif
#if LIBCURL_VERSION_NUM >= 0x080800 /* Available since 8.8.0 */
case CURLOPT_ECH:
#endif
{
zend_string *tmp_str;
Expand Down
Loading