Hello developers,

I'd like to propose this simple patch (against 4.2.3) to the curl extension. It
adds the ability to specify the CURLOPT_FTP_USE_EPSV option via the
curl_setopt() function. (This is the same as the curl command line option
--disable-epsv.)

Regards,

*** ext/curl/curl.c.orig        Tue Oct  1 12:48:52 2002
--- ext/curl/curl.c     Tue Oct  1 12:51:18 2002
***************
*** 135,140 ****
--- 135,141 ----
        REGISTER_CURL_CONSTANT(CURLOPT_REFERER);
        REGISTER_CURL_CONSTANT(CURLOPT_USERAGENT);
        REGISTER_CURL_CONSTANT(CURLOPT_FTPPORT);
+       REGISTER_CURL_CONSTANT(CURLOPT_FTP_USE_EPSV);
        REGISTER_CURL_CONSTANT(CURLOPT_LOW_SPEED_LIMIT);
        REGISTER_CURL_CONSTANT(CURLOPT_LOW_SPEED_TIME);
        REGISTER_CURL_CONSTANT(CURLOPT_RESUME_FROM);
***************
*** 637,642 ****
--- 638,644 ----
        case CURLOPT_PUT:
        case CURLOPT_MUTE:
        case CURLOPT_TIMEOUT:
+       case CURLOPT_FTP_USE_EPSV:
        case CURLOPT_LOW_SPEED_LIMIT:
        case CURLOPT_SSLVERSION:
        case CURLOPT_LOW_SPEED_TIME:

-- 
Alex Howansky
Wankwood Associates
http://www.wankwood.com/



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to