#38574 [NEW]: enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH)
| From: | php at gozer dot org | Date: | Wed, 23 Aug 2006 23:07:15 +0000 |
| Subject: | #38574 [NEW]: enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-101227@lists.php.net to get a copy of this message | ||
From: php at gozer dot org
Operating system: Linux
PHP version: 4.4.4
PHP Bug Type: cURL related
Bug description: enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH)
Description:
------------
CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH, and related options aren't registered
in ext/curl.c. Without these, you can't do any ssl-related ftp bits...
patch:
http://www.gozer.org/test/php-4.4.4.ftpssl.diff
Reproduce code:
---------------
<?php
$curl = curl_init();
if($curl) {
curl_setopt($curl, CURLOPT_URL, "ftp://ftp.mozilla.org/");
curl_setopt($curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_exec($curl);
curl_close($curl);
}
?>
Expected result:
----------------
* Connected to ftp.mozilla.org (63.245.208.138) port 21
< 220 (vsFTPd 2.0.1)
> AUTH SSL
< 530 Please login with USER and PASS.
> AUTH TLS
< 530 Please login with USER and PASS.
> USER anonymous
< 331 Please specify the password.
(unsupported here, but you get the idea)
Actual result:
--------------
* Connected to ftp.mozilla.org (63.245.208.138) port 21
< 220 (vsFTPd 2.0.1)
> USER anonymous
< 331 Please specify the password.
--
Edit bug report at http://bugs.php.net/?id=38574&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38574&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38574&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38574&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38574&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38574&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38574&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38574&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38574&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38574&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38574&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38574&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38574&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38574&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38574&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38574&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38574&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38574&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38574&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38574&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38574&r=mysqlcfg