php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #38574 enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH)
Submitted: 2006-08-23 23:07 UTC Modified: 2006-09-18 16:13 UTC
From: php at gozer dot org Assigned: iliaa (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.4.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 26 = ?
Subscribe to this entry?

 
 [2006-08-23 23:07 UTC] php at gozer dot org
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-18 16:13 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC