summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-08-18 21:27:24 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-08-18 21:27:24 +0000
commit5520636b17b6c22887630ab24f9ab44d4753caa9 (patch)
treef6b4083620a8aa621b1abbcf483318ce62bbe0ec
parentf60dc4699fd0e8a699e26148e167ff7c31eb396f (diff)
downloadphp-git-5520636b17b6c22887630ab24f9ab44d4753caa9.tar.gz
Fixed bug #29727 (Added missing CURL authentication directives).
-rw-r--r--ext/curl/interface.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index a3a67a585d..907d628c13 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -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);
@@ -913,6 +917,9 @@ PHP_FUNCTION(curl_setopt)
#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:
convert_to_long_ex(zvalue);