Req #29248 [Opn->Fbk]: FTP does not work on glFTPD + TLS

From: Date: Mon, 18 Oct 2021 15:47:33 +0000
Subject: Req #29248 [Opn->Fbk]: FTP does not work on glFTPD + TLS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237270@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=29248&edit=1 ID: 29248 Updated by: cmb@php.net Reported by: toppi at kacke dot de Summary: FTP does not work on glFTPD + TLS -Status: Open +Status: Feedback Type: Feature/Change Request Package: FTP related Operating System: Linux PHP Version: 5.0.0 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [2004-07-19 00:44:22] 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 ! ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=29248&edit=1

« previous php.bugs (#237270) next »