Skip to content

Commit

Permalink
Fix phpGH-11755: Expose CURL_HTTP_VERSION_3 constant
Browse files Browse the repository at this point in the history
  • Loading branch information
adoy committed Aug 19, 2023
1 parent ffd398b commit 22a5807
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ext/curl/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,10 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURL_VERSION_ALTSVC);
#endif

#if LIBCURL_VERSION_NUM >= 0x074200 /* Available since 7.66.0 */
REGISTER_CURL_CONSTANT(CURL_HTTP_VERSION_3);
#endif

#if LIBCURL_VERSION_NUM >= 0x074700 /* Available since 7.71.0 */
REGISTER_CURL_CONSTANT(CURLOPT_ISSUERCERT_BLOB);
REGISTER_CURL_CONSTANT(CURLOPT_PROXY_ISSUERCERT);
Expand All @@ -1169,6 +1173,10 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURLOPT_SSLKEY_BLOB);
#endif

#if LIBCURL_VERSION_NUM >= 0x075800 /* Available since 7.88.0 */
REGISTER_CURL_CONSTANT(CURL_HTTP_VERSION_3ONLY);
#endif

REGISTER_CURL_CONSTANT(CURLOPT_SAFE_UPLOAD);

#ifdef PHP_CURL_NEED_OPENSSL_TSL
Expand Down

0 comments on commit 22a5807

Please sign in to comment.