#38574 [Asn->Csd]: enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH)

From: Date: Mon, 18 Sep 2006 16:13:14 +0000
Subject: #38574 [Asn->Csd]: enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102345@lists.php.net to get a copy of this message
ID: 38574 Updated by: iliaa@php.net Reported By: php at gozer dot org -Status: Assigned +Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.4.4 Assigned To: iliaa New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2006-08-23 23:07:15] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38574&edit=1

« previous php.bugs (#102345) next »