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: 2016-12-30 19:01 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:
Status: Open Package: FTP related
PHP Version: 5.0.0 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 26 17:01:27 2019 UTC