From: Sriram Natarajan Date: Sat, 23 Jan 2010 01:37:32 +0000 (+0000) Subject: - Fixed bug #50756 (CURLOPT_FTP_SKIP_PASV_IP does not exist.) X-Git-Tag: php-5.4.0alpha1~408 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ea435c6e0121f54016844bc3c26b1edf7e3b58b;p=php - Fixed bug #50756 (CURLOPT_FTP_SKIP_PASV_IP does not exist.) --- diff --git a/NEWS b/NEWS index 2f4bcebd56..9e4315f852 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,7 @@ PHP NEWS streams). (vnegrier at optilian dot com, Ilia) - Fixed bug #50761 (system.multiCall crashes in xmlrpc extension). (hiroaki dot kawai at gmail dot com, Ilia) +- Fixed bug #50756 (CURLOPT_FTP_SKIP_PASV_IP does not exist). (Sriram) - Fixed bug #50732 (exec() adds single byte twice to $output array). (Ilia) - Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0). (Joey, Ilia) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 942f403325..37388c59b8 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -789,6 +789,7 @@ PHP_MINIT_FUNCTION(curl) #if LIBCURL_VERSION_NUM >= 0x070f01 REGISTER_CURL_CONSTANT(CURLOPT_FTP_FILEMETHOD); + REGISTER_CURL_CONSTANT(CURLOPT_FTP_SKIP_PASV_IP); #endif #if LIBCURL_VERSION_NUM >= 0x071001 @@ -1657,6 +1658,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu #endif #if LIBCURL_VERSION_NUM >= 0x070f01 case CURLOPT_FTP_FILEMETHOD: + case CURLOPT_FTP_SKIP_PASV_IP: #endif #if LIBCURL_VERSION_NUM > 0x071301 case CURLOPT_CERTINFO: diff --git a/ext/curl/tests/curl_ftp_pasv.phpt b/ext/curl/tests/curl_ftp_pasv.phpt new file mode 100644 index 0000000000..6cd7429104 --- /dev/null +++ b/ext/curl/tests/curl_ftp_pasv.phpt @@ -0,0 +1,59 @@ +--TEST-- +Test curl_exec() function with basic functionality +--CREDITS-- +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +bool(true) +===DONE===