summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorDavey Shafik <dshafik@akamai.com>2015-09-02 16:06:31 +1200
committerDavey Shafik <dshafik@akamai.com>2015-09-02 17:16:43 +1200
commit9ec6a44c5e9f98974c3cad5a95af7b8a5c544616 (patch)
tree1a60f8c7ddc9210f9f3baa4adc89fd4e1e1f8164 /ext/curl/interface.c
parent519016096f911428778d0b88b8701e4d72e88bee (diff)
downloadphp-git-9ec6a44c5e9f98974c3cad5a95af7b8a5c544616.tar.gz
Add CURLPIPE_* constants to properly expose HTTP/2 multiplexing
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 5081127649..f12a9e2492 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -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