]> granicus.if.org Git - php/commitdiff
Fixed bug #29727 (Added missing CURL authentication directives).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 18 Aug 2004 21:27:24 +0000 (21:27 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 18 Aug 2004 21:27:24 +0000 (21:27 +0000)
ext/curl/interface.c

index a3a67a585dc97e832fd9bd68a032de01e35a17f1..907d628c13fd6836df94675c12eaaceafc78621d 100644 (file)
@@ -231,7 +231,11 @@ PHP_MINIT_FUNCTION(curl)
        REGISTER_CURL_CONSTANT(CURLAUTH_ANY);
        REGISTER_CURL_CONSTANT(CURLAUTH_ANYSAFE);
 #endif
-       
+
+#if LIBCURL_VERSION_NUM > 0x070a06 /* CURLOPT_PROXYAUTH is available since curl 7.10.7 */
+       REGISTER_CURL_CONSTANT(CURLOPT_PROXYAUTH);
+#endif
+
        /* Constants effecting the way CURLOPT_CLOSEPOLICY works */
        REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_LEAST_RECENTLY_USED);
        REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_LEAST_TRAFFIC);
@@ -912,6 +916,9 @@ PHP_FUNCTION(curl_setopt)
                case CURLOPT_FTP_USE_EPRT:
 #if LIBCURL_VERSION_NUM > 0x070a05 /* CURLOPT_HTTPAUTH is available since curl 7.10.6 */
                case CURLOPT_HTTPAUTH:
+#endif
+#if LIBCURL_VERSION_NUM > 0x070a06 /* CURLOPT_PROXYAUTH is available since curl 7.10.7 */
+               case CURLOPT_PROXYAUTH:
 #endif
                case CURLOPT_UNRESTRICTED_AUTH:
                case CURLOPT_PORT: