cvs: php-src(PHP_5_0) /ext/curl interface.c
| From: | Ilia Alshanetsky | Date: | Wed, 18 Aug 2004 21:27:27 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/curl interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28367@lists.php.net to get a copy of this message | ||
iliaa Wed Aug 18 17:27:27 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/curl interface.c
Log:
MFH: Fixed bug #29727 (Added missing CURL authentication directives).
http://cvs.php.net/diff.php/php-src/ext/curl/interface.c?r1=1.46&r2=1.46.2.1&ty=u
Index: php-src/ext/curl/interface.c
diff -u php-src/ext/curl/interface.c:1.46 php-src/ext/curl/interface.c:1.46.2.1
--- php-src/ext/curl/interface.c:1.46 Thu Jul 1 02:50:46 2004
+++ php-src/ext/curl/interface.c Wed Aug 18 17:27:27 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interface.c,v 1.46 2004/07/01 06:50:46 sterling Exp $ */
+/* $Id: interface.c,v 1.46.2.1 2004/08/18 21:27:27 iliaa Exp $ */
#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
@@ -231,7 +231,11 @@
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 @@
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: