summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/interface.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 8d1bb3600b..ba54b1dd78 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -369,7 +369,14 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURLM_INTERNAL_ERROR);
REGISTER_CURL_CONSTANT(CURLMSG_DONE);
-
+
+#ifdef CURLOPT_FTPSSLAUTH
+ REGISTER_CURL_CONSTANT(CURLOPT_FTPSSLAUTH);
+ REGISTER_CURL_CONSTANT(CURLFTPAUTH_DEFAULT);
+ REGISTER_CURL_CONSTANT(CURLFTPAUTH_SSL);
+ REGISTER_CURL_CONSTANT(CURLFTPAUTH_TLS);
+#endif
+
if (curl_global_init(CURL_GLOBAL_SSL) != CURLE_OK) {
return FAILURE;
}
@@ -924,6 +931,10 @@ PHP_FUNCTION(curl_setopt)
#if LIBCURL_VERSION_NUM > 0x070a06 /* CURLOPT_PROXYAUTH is available since curl 7.10.7 */
case CURLOPT_PROXYAUTH:
#endif
+
+#ifdef CURLOPT_FTPSSLAUTH
+ case CURLOPT_FTPSSLAUTH:
+#edif
case CURLOPT_UNRESTRICTED_AUTH:
case CURLOPT_PORT:
convert_to_long_ex(zvalue);