php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29248 FTP does not work on glFTPD + TLS
Submitted: 2004-07-19 00:44 UTC Modified: 2021-10-31 04:22 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: toppi at kacke dot de Assigned: cmb (profile)
Status: No Feedback Package: FTP related
PHP Version: 5.0.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: toppi at kacke dot de
New email:
PHP Version: OS:

 

 [2004-07-19 00:44 UTC] toppi at kacke dot de
Description:
------------
When using ftp_ssl_connect + ftp_login on a glFTPd + TLS 
it connects but all further commands are fail

I expect the portcmds are failing

Used SFTPd glFtpd 1.3 + TLS   


Reproduce code:
---------------
<?
error_reporting(E_ALL);

if(!$conn = ftp_ssl_connect("HOST","PORT",10)){
	echo "no connex";
	exit;
}
if(!ftp_login($conn, "USER","PASS")){
	echo "wrong lp";
	exit;
}
echo (ftp_systype($conn))."<br>";
$path = ftp_pwd($conn);
echo "$path<br>";

//until here everthing seems ok


var_dump(ftp_rawlist($conn,$path));
var_dump(ftp_nlist($conn,$path));
var_dump(ftp_raw($conn, "CWD $path"));
ftp_quit($conn);
exit;

//all this == false
?>

Expected result:
----------------
one ralist
one nlist
one cwd incomingdir

Actual result:
--------------
The example above gives:

------------------
UNIX
/
bool(false)
bool(false) 
array(0) { } 
------------------


I found the same kind of symptoms when using
fsockopen("tls://"."host","port", ....etc

Already posted at Bug #28754 No TLS / SSL support for FTP were the connect already fails.

This one above connects, but keep stick.

A glFtpd + TLS support would be really cool cause much in use

Thank you guys ! 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 19:01 UTC] cmb@php.net
-Package: Feature/Change Request +Package: FTP related
 [2021-10-18 15:47 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-10-18 15:47 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1] and a somewhat recent glFtpd?

[1] <https://www.php.net/supported-versions.php>
 [2021-10-31 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC