com php-src: curl: add new proxy constants: ext/curl/interface.c
| From: | JulienPauli | Date: | Mon, 23 Feb 2015 10:19:36 +0000 |
| Subject: | com php-src: curl: add new proxy constants: ext/curl/interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85063@lists.php.net to get a copy of this message | ||
Commit: 63ab6d8249c9f5d04fc29ed2fb3908ce6594e5f7
Author: Linus Unnebäck <linus@folkdatorn.se> Tue, 17 Jun 2014 12:28:44 +0200
Committer: Julien Pauli <jpauli@php.net> Mon, 23 Feb 2015 11:19:36 +0100
Parents: d5a1a3342b0a9a0e571896d19e275435903bcce6
Branches: PHP-5.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=63ab6d8249c9f5d04fc29ed2fb3908ce6594e5f7
Log:
curl: add new proxy constants
Changed paths:
M ext/curl/interface.c
Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 56cc51c..8e593f5 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -845,6 +845,11 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4);
REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5);
+#if LIBCURL_VERSION_NUM >= 0x071200 /* Available since 7.18.0 */
+ REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4A);
+ REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5_HOSTNAME);
+#endif
+
/* Curl Share constants */
REGISTER_CURL_CONSTANT(CURLSHOPT_NONE);
REGISTER_CURL_CONSTANT(CURLSHOPT_SHARE);