mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Added support for better control over FTP encryption protocols.
This commit is contained in:
parent
2b80314c3f
commit
fae64ba40c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user