]> granicus.if.org Git - php/commitdiff
curl: add new proxy constants
authorLinus Unnebäck <linus@folkdatorn.se>
Tue, 17 Jun 2014 10:28:44 +0000 (12:28 +0200)
committerJulien Pauli <jpauli@php.net>
Mon, 23 Feb 2015 10:19:36 +0000 (11:19 +0100)
ext/curl/interface.c

index 56cc51c4539684418cac4bf7bed3544d823af78c..8e593f54ba0ef625e04e120ccb3ed639ab4542f0 100644 (file)
@@ -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);