Skip to content

Commit 17d3d32

Browse files
committed
7.74.0
1 parent 5314373 commit 17d3d32

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ext/curl/interface.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,13 @@ PHP_MINIT_FUNCTION(curl)
11951195
REGISTER_CURL_CONSTANT(CURLOPT_SSL_EC_CURVES);
11961196
#endif
11971197

1198+
#if LIBCURL_VERSION_NUM >= 0x074a00 /* Available since 7.74.0 */
1199+
REGISTER_CURL_CONSTANT(CURLHSTS_ENABLE);
1200+
REGISTER_CURL_CONSTANT(CURLHSTS_READONLYFILE);
1201+
REGISTER_CURL_CONSTANT(CURLOPT_HSTS);
1202+
REGISTER_CURL_CONSTANT(CURLOPT_HSTS_CTRL);
1203+
#endif
1204+
11981205
REGISTER_CURL_CONSTANT(CURLOPT_SAFE_UPLOAD);
11991206

12001207
#ifdef PHP_CURL_NEED_OPENSSL_TSL
@@ -2584,6 +2591,9 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
25842591
#endif
25852592
#if LIBCURL_VERSION_NUM >= 0x074500 /* Available since 7.69.0 */
25862593
case CURLOPT_MAIL_RCPT_ALLLOWFAILS:
2594+
#endif
2595+
#if LIBCURL_VERSION_NUM >= 0x074a00 /* Available since 7.74.0 */
2596+
case CURLOPT_HSTS_CTRL:
25872597
#endif
25882598
lval = zval_get_long(zvalue);
25892599
if ((option == CURLOPT_PROTOCOLS || option == CURLOPT_REDIR_PROTOCOLS) &&
@@ -2718,6 +2728,9 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
27182728
#endif
27192729
#if LIBCURL_VERSION_NUM >= 0x073E00 /* Available since 7.62.0 */
27202730
case CURLOPT_DOH_URL:
2731+
#endif
2732+
#if LIBCURL_VERSION_NUM >= 0x074a00 /* Available since 7.74.0 */
2733+
case CURLOPT_HSTS:
27212734
#endif
27222735
case CURLOPT_KRBLEVEL:
27232736
{

0 commit comments

Comments
 (0)