@@ -296,10 +296,10 @@ PHP_MINFO_FUNCTION(curl)
296
296
#if LIBCURL_VERSION_NUM >= 0x074001 /* 7.64.1 */
297
297
{"ALTSVC" , CURL_VERSION_ALTSVC },
298
298
#endif
299
- #if LIBCURL_VERSION_NUM >= 0x074200 /* 7.66.0 */
299
+ #if LIBCURL_VERSION_NUM >= 0x074200 /* Available since 7.66.0 */
300
300
{"HTTP3" , CURL_VERSION_HTTP3 },
301
301
#endif
302
- #if LIBCURL_VERSION_NUM >= 0x074800 /* 7.72.0 */
302
+ #if LIBCURL_VERSION_NUM >= 0x074800 /* Available since 7.72.0 */
303
303
{"UNICODE" , CURL_VERSION_UNICODE },
304
304
{"ZSTD" , CURL_VERSION_ZSTD },
305
305
#endif
@@ -499,7 +499,7 @@ static HashTable *curl_get_gc(zend_object *object, zval **table, int *n)
499
499
zend_get_gc_buffer_add_zval (gc_buffer , & curl -> handlers .fnmatch -> func_name );
500
500
}
501
501
502
- #if LIBCURL_VERSION_NUM >= 0x075400
502
+ #if LIBCURL_VERSION_NUM >= 0x075400 /* Available since 7.84.0 */
503
503
if (curl -> handlers .sshhostkey ) {
504
504
zend_get_gc_buffer_add_zval (gc_buffer , & curl -> handlers .sshhostkey -> func_name );
505
505
}
@@ -756,7 +756,7 @@ static size_t curl_xferinfo(void *clientp, curl_off_t dltotal, curl_off_t dlnow,
756
756
}
757
757
/* }}} */
758
758
759
- #if LIBCURL_VERSION_NUM >= 0x075400
759
+ #if LIBCURL_VERSION_NUM >= 0x075400 /* Available since 7.84.0 */
760
760
static int curl_ssh_hostkeyfunction (void * clientp , int keytype , const char * key , size_t keylen )
761
761
{
762
762
php_curl * ch = (php_curl * )clientp ;
@@ -1057,7 +1057,7 @@ void init_curl_handle(php_curl *ch)
1057
1057
ch -> handlers .progress = NULL ;
1058
1058
ch -> handlers .xferinfo = NULL ;
1059
1059
ch -> handlers .fnmatch = NULL ;
1060
- #if LIBCURL_VERSION_NUM >= 0x075400
1060
+ #if LIBCURL_VERSION_NUM >= 0x075400 /* Available since 7.84.0 */
1061
1061
ch -> handlers .sshhostkey = NULL ;
1062
1062
#endif
1063
1063
ch -> clone = emalloc (sizeof (uint32_t ));
@@ -1233,7 +1233,7 @@ void _php_setup_easy_copy_handlers(php_curl *ch, php_curl *source)
1233
1233
_php_copy_callback (ch , & ch -> handlers .progress , source -> handlers .progress , CURLOPT_PROGRESSDATA );
1234
1234
_php_copy_callback (ch , & ch -> handlers .xferinfo , source -> handlers .xferinfo , CURLOPT_XFERINFODATA );
1235
1235
_php_copy_callback (ch , & ch -> handlers .fnmatch , source -> handlers .fnmatch , CURLOPT_FNMATCH_DATA );
1236
- #if LIBCURL_VERSION_NUM >= 0x075400
1236
+ #if LIBCURL_VERSION_NUM >= 0x075400 /* Available since 7.84.0 */
1237
1237
_php_copy_callback (ch , & ch -> handlers .sshhostkey , source -> handlers .sshhostkey , CURLOPT_SSH_HOSTKEYDATA );
1238
1238
#endif
1239
1239
@@ -2787,7 +2787,7 @@ static void curl_free_obj(zend_object *object)
2787
2787
_php_curl_free_callback (ch -> handlers .progress );
2788
2788
_php_curl_free_callback (ch -> handlers .xferinfo );
2789
2789
_php_curl_free_callback (ch -> handlers .fnmatch );
2790
- #if LIBCURL_VERSION_NUM >= 0x075400
2790
+ #if LIBCURL_VERSION_NUM >= 0x075400 /* Available since 7.84.0 */
2791
2791
_php_curl_free_callback (ch -> handlers .sshhostkey );
2792
2792
#endif
2793
2793
@@ -2870,7 +2870,7 @@ static void _php_curl_reset_handlers(php_curl *ch)
2870
2870
ch -> handlers .fnmatch = NULL ;
2871
2871
}
2872
2872
2873
- #if LIBCURL_VERSION_NUM >= 0x075400
2873
+ #if LIBCURL_VERSION_NUM >= 0x075400 /* Available since 7.84.0 */
2874
2874
if (ch -> handlers .sshhostkey ) {
2875
2875
zval_ptr_dtor (& ch -> handlers .sshhostkey -> func_name );
2876
2876
efree (ch -> handlers .sshhostkey );
0 commit comments