File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ This component provides features added to PHP 8.4 core:
6
6
- [ ` mb_ucfirst ` and ` mb_lcfirst ` ] ( https://wiki.php.net/rfc/mb_ucfirst )
7
7
- [ ` array_find ` , ` array_find_key ` , ` array_any ` and ` array_all ` ] ( https://wiki.php.net/rfc/array_find )
8
8
- [ ` Deprecated ` ] ( https://wiki.php.net/rfc/deprecated_attribute )
9
+ - ` CURL_HTTP_VERSION_3 ` and ` CURL_HTTP_VERSION_3ONLY ` constants
9
10
10
11
More information can be found in the
11
12
[ main Polyfill README] ( https://github.com/symfony/polyfill/blob/main/README.md ) .
Original file line number Diff line number Diff line change 15
15
return ;
16
16
}
17
17
18
+ if (defined ('CURL_VERSION_HTTP3 ' ) || PHP_VERSION_ID < 80200 && function_exists ('curl_version ' ) && curl_version ()['version ' ] >= 0x074200 ) { // libcurl >= 7.66.0
19
+ define ('CURL_HTTP_VERSION_3 ' , 30 );
20
+
21
+ if (defined ('CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 ' )) { // libcurl >= 7.80.0 (7.88 would be better but is slow to check)
22
+ define ('CURL_HTTP_VERSION_3ONLY ' , 31 );
23
+ }
24
+ }
25
+
18
26
if (!function_exists ('array_find ' )) {
19
27
function array_find (array $ array , callable $ callback ) { return p \Php84::array_find ($ array , $ callback ); }
20
28
}
You can’t perform that action at this time.
0 commit comments