summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorLinus Unnebäck <linus@folkdatorn.se>2014-06-17 12:28:44 +0200
committerJulien Pauli <jpauli@php.net>2015-02-23 11:19:36 +0100
commit63ab6d8249c9f5d04fc29ed2fb3908ce6594e5f7 (patch)
tree8d8033938142eae47103799f8a74f984ae8b248c /ext/curl/interface.c
parentd5a1a3342b0a9a0e571896d19e275435903bcce6 (diff)
downloadphp-git-63ab6d8249c9f5d04fc29ed2fb3908ce6594e5f7.tar.gz
curl: add new proxy constants
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 56cc51c453..8e593f54ba 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);