add http version 2_PRIOR_KNOWLEDGE and 3 constants
authorMichael Wallner <mike@php.net>
Mon, 1 Mar 2021 15:21:10 +0000 (16:21 +0100)
committerMichael Wallner <mike@php.net>
Mon, 1 Mar 2021 15:21:10 +0000 (16:21 +0100)
src/php_http_client_curl.c

index 4882500ac153a15ae423ff106c403528b071ada1..1dc3ccb7a9bf732c581de075744dd7490df9c329 100644 (file)
@@ -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);