diff options
author | Linus Unnebäck <linus@folkdatorn.se> | 2014-06-17 12:28:44 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2015-02-23 11:19:36 +0100 |
commit | 63ab6d8249c9f5d04fc29ed2fb3908ce6594e5f7 (patch) | |
tree | 8d8033938142eae47103799f8a74f984ae8b248c /ext/curl/interface.c | |
parent | d5a1a3342b0a9a0e571896d19e275435903bcce6 (diff) | |
download | php-git-63ab6d8249c9f5d04fc29ed2fb3908ce6594e5f7.tar.gz |
curl: add new proxy constants
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r-- | ext/curl/interface.c | 5 |
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); |