From: toppi at kacke dot de Operating system: linux/unix PHP version: 4.3.4 PHP Bug Type: Sockets related Bug description: No TLS / SSL support for FTP
Description: ------------ TLS/SSL Protocols/Wrappers doesnt work when using fsockopen() Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in /sb3/ftp.inc on line 58 Warning: fsockopen(): php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in /sb3/ftp.inc on line 58 Warning: fsockopen(): failed to activate SSL mode 2 in /sb3/ftp.inc on line 58 also FOPEN() doesnt do that ftp_ssl_connect is working fine but useless cause no valid stream for fget() etc.... there sould be a way to connect ssl/tls FTP wihout using php's ftp.lib Reproduce code: --------------- just try $this->_sock = fsockopen("tls://".$server, $port, $errno, $errstr, $this->timeout); Expected result: ---------------- -Connect to FTP (plain) -enable wrapper -get a pointer back -- Edit bug report at http://bugs.php.net/?id=28754&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28754&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28754&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28754&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28754&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28754&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28754&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28754&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28754&r=support Expected behavior: http://bugs.php.net/fix.php?id=28754&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28754&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28754&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28754&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28754&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28754&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28754&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28754&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28754&r=float