ID: 21642 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Sockets related PHP Version: 4.3.0 New Comment:
this is expected behaviour; fsockopen("tls://") opens the socket with TLS turned on. By default, TLS-enabled ftp servers start "in the clear" - with crypto turned off. If you want to use TLS over ftp, consider using fopen("ftps://") instead (which will attempt TLS negotiation according to the relevant rfcs), or if that is not sufficient, try using the curl functions. Previous Comments: ------------------------------------------------------------------------ [2003-01-14 16:28:29] [EMAIL PROTECTED] Trying to tls://ftp_ip:port ... Warning: fsockopen() [function.fsockopen]: php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in ftpclass.php on line 204 Warning: fsockopen() [function.fsockopen]: failed to activate SSL mode 2 in ftpclass.php on line 204 The TLS SERVER replies tru fread() at least : UK (glftpd 1.28_Linux+TLS) ready. 500 '': Command not understood. I would expect when using a tls-prefix its working similare to ftp_ssl_connect (what is working fine but not needed cause no filepointer back). No chance in php to connect ftp+tls tru fsock which is needed if you need a filepointer back to use fread/write etc. Greetings Toppi ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21642&edit=1