From: Michael Wallner Date: Mon, 1 Mar 2021 15:21:10 +0000 (+0100) Subject: add http version 2_PRIOR_KNOWLEDGE and 3 constants X-Git-Tag: v4.1.0~29 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cc5360e644e3609665c6dae19673d934e943a763;p=m6w6%2Fext-http add http version 2_PRIOR_KNOWLEDGE and 3 constants --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 4882500..1dc3ccb 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -2600,6 +2600,12 @@ PHP_MINIT_FUNCTION(http_client_curl) #endif #if PHP_HTTP_CURL_VERSION(7,47,0) REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_2TLS", CURL_HTTP_VERSION_2TLS, CONST_CS|CONST_PERSISTENT); +#endif +#if PHP_HTTP_CURL_VERSION(7,49,0) + REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_2_PRIOR_KNOWLEDGE", CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE, CONST_CS|CONST_PERSISTENT); +#endif +#if PHP_HTTP_CURL_VERSION(7,66,0) + REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_3", CURL_HTTP_VERSION_3, CONST_CS|CONST_PERSISTENT); #endif REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_ANY", CURL_HTTP_VERSION_NONE, CONST_CS|CONST_PERSISTENT);