Skip to content

Commit d21a94e

Browse files
committed
7.80.0
1 parent e12a49b commit d21a94e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/curl/interface.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,11 @@ PHP_MINIT_FUNCTION(curl)
12181218
REGISTER_CURL_CONSTANT(CURLOPT_PROXY_CAINFO_BLOB);
12191219
#endif
12201220

1221+
#if LIBCURL_VERSION_NUM >= 0x075000 /* Available since 7.80.0 */
1222+
REGISTER_CURL_CONSTANT(CURLOPT_MAXLIFETIME_CONN);
1223+
REGISTER_CURL_CONSTANT(CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256);
1224+
#endif
1225+
12211226
REGISTER_CURL_CONSTANT(CURLOPT_SAFE_UPLOAD);
12221227

12231228
#ifdef PHP_CURL_NEED_OPENSSL_TSL
@@ -2615,6 +2620,9 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
26152620
case CURLOPT_DOH_SSL_VERIFYHOST:
26162621
case CURLOPT_DOH_SSL_VERIFYPEER:
26172622
case CURLOPT_DOH_SSL_VERIFYSTATUS:
2623+
#endif
2624+
#if LIBCURL_VERSION_NUM >= 0x075000 /* Available since 7.80.0 */
2625+
case CURLOPT_MAXLIFETIME_CONN:
26182626
#endif
26192627
lval = zval_get_long(zvalue);
26202628
if ((option == CURLOPT_PROTOCOLS || option == CURLOPT_REDIR_PROTOCOLS) &&
@@ -2726,6 +2734,9 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
27262734
#endif
27272735
#if LIBCURL_VERSION_NUM >= 0x074b00 /* Available since 7.75.0 */
27282736
case CURLOPT_AWS_SIGV4:
2737+
#endif
2738+
#if LIBCURL_VERSION_NUM >= 0x075000 /* Available since 7.80.0 */
2739+
case CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256:
27292740
#endif
27302741
{
27312742
zend_string *tmp_str;

0 commit comments

Comments
 (0)