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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at gozer dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Nov 23 07:01:29 2024 UTC