patch to add CURLOPT_FTP_USE_EPSV option to curl extension
| From: | Alex Howansky | Date: | Wed, 02 Oct 2002 15:36:29 +0000 |
| Subject: | patch to add CURLOPT_FTP_USE_EPSV option to curl extension | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-88865@lists.php.net to get a copy of this message | ||
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/