From: Michael Wallner Date: Wed, 9 Mar 2016 09:25:34 +0000 (+0100) Subject: add CURL_HTTP_VERSION_2TLS X-Git-Tag: RELEASE_2_5_6~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=509cc9fefb94e4eb2443e99645f6a352d912cbf3;p=m6w6%2Fext-http add CURL_HTTP_VERSION_2TLS --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 96b0bb0..f49aabc 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -2508,6 +2508,9 @@ PHP_MINIT_FUNCTION(http_client_curl) REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_1_1", CURL_HTTP_VERSION_1_1, CONST_CS|CONST_PERSISTENT); #if PHP_HTTP_CURL_VERSION(7,33,0) REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_2_0", CURL_HTTP_VERSION_2_0, CONST_CS|CONST_PERSISTENT); +#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 REGISTER_NS_LONG_CONSTANT("http\\Client\\Curl", "HTTP_VERSION_ANY", CURL_HTTP_VERSION_NONE, CONST_CS|CONST_PERSISTENT);