From:             toppi at kacke dot de
Operating system: Linux
PHP version:      5.0.0
PHP Bug Type:     FTP related
Bug description:  FTP does not work on glFTPD + TLS

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 bug report at http://bugs.php.net/?id=29248&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29248&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29248&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29248&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29248&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29248&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29248&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29248&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29248&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29248&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29248&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29248&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29248&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29248&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29248&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29248&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29248&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29248&r=float

Reply via email to