mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
Merge branch 'PHP-5.6'
* PHP-5.6: add CURL_HTTP_VERSION_2_0 and CURL_VERSION_HTTP2
This commit is contained in:
@@ -857,6 +857,9 @@ PHP_MINIT_FUNCTION(curl)
|
||||
/* Curl Http Version constants (CURLOPT_HTTP_VERSION) */
|
||||
REGISTER_CURL_CONSTANT(CURL_HTTP_VERSION_1_0);
|
||||
REGISTER_CURL_CONSTANT(CURL_HTTP_VERSION_1_1);
|
||||
#if LIBCURL_VERSION_NUM >= 0x072100 /* 7.33.0 */
|
||||
REGISTER_CURL_CONSTANT(CURL_HTTP_VERSION_2_0);
|
||||
#endif
|
||||
REGISTER_CURL_CONSTANT(CURL_HTTP_VERSION_NONE);
|
||||
|
||||
/* Curl Lock constants */
|
||||
@@ -886,6 +889,9 @@ PHP_MINIT_FUNCTION(curl)
|
||||
REGISTER_CURL_CONSTANT(CURL_VERSION_KERBEROS4);
|
||||
REGISTER_CURL_CONSTANT(CURL_VERSION_LIBZ);
|
||||
REGISTER_CURL_CONSTANT(CURL_VERSION_SSL);
|
||||
#if LIBCURL_VERSION_NUM >= 0x072100 /* 7.33.0 */
|
||||
REGISTER_CURL_CONSTANT(CURL_VERSION_HTTP2);
|
||||
#endif
|
||||
|
||||
#if LIBCURL_VERSION_NUM >= 0x070a06 /* Available since 7.10.6 */
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_HTTPAUTH);
|
||||
|
||||
Reference in New Issue
Block a user