]> granicus.if.org Git - php/commitdiff
Add CURLPIPE_* constants to properly expose HTTP/2 multiplexing
authorDavey Shafik <dshafik@akamai.com>
Wed, 2 Sep 2015 04:06:31 +0000 (16:06 +1200)
committerDavey Shafik <dshafik@akamai.com>
Wed, 2 Sep 2015 05:16:43 +0000 (17:16 +1200)
ext/curl/interface.c

index 5081127649665998b75e8752ac40b5c293870f99..f12a9e24926679d0268ae5583eec8d8ded6ec69a 100644 (file)
@@ -1217,6 +1217,12 @@ PHP_MINIT_FUNCTION(curl)
        REGISTER_CURL_CONSTANT(CURL_SSLVERSION_TLSv1_2);
 #endif
 
+#if LIBCURL_VERSION_NUM >= 0x072B00 /* Available since 7.43.0 */
+       REGISTER_CURL_CONSTANT(CURLPIPE_NOTHING);
+       REGISTER_CURL_CONSTANT(CURLPIPE_HTTP1);
+       REGISTER_CURL_CONSTANT(CURLPIPE_MULTIPLEX);
+#endif
+
 #if CURLOPT_FTPASCII != 0
        REGISTER_CURL_CONSTANT(CURLOPT_FTPASCII);
 #endif