com php-src: Add CURLPIPE_* constants to properly exp ose HTTP/2 multiplexing: ext/curl/interface.c
| From: | Kalle Sommer Nielsen | Date: | Wed, 02 Sep 2015 05:16:43 +0000 |
| Subject: | com php-src: Add CURLPIPE_* constants to properly exp ose HTTP/2 multiplexing: ext/curl/interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88906@lists.php.net to get a copy of this message | ||
Commit: 9ec6a44c5e9f98974c3cad5a95af7b8a5c544616
Author: Davey Shafik <dshafik@akamai.com> Wed, 2 Sep 2015 16:06:31 +1200
Parents: 519016096f911428778d0b88b8701e4d72e88bee
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9ec6a44c5e9f98974c3cad5a95af7b8a5c544616
Log:
Add CURLPIPE_* constants to properly expose HTTP/2 multiplexing
Changed paths:
M ext/curl/interface.c
Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 5081127..f12a9e24 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