ID: 28754 User updated by: toppi at kacke dot de Reported By: toppi at kacke dot de -Status: No Feedback +Status: Open Bug Type: Sockets related Operating System: linux/unix PHP Version: 4.3.4 New Comment:
We did the following on a OS: Fedora Core 2 Linux Version 4.3.8 /configure --prefix=/home/simon/php348 --with-mysql=/usr/local/mysql-4.0.18 --with-zlib --enable-ftp --with-curl --enable-bcmath --with-openssl --with-mcrypt --with-mhash --enable-pcntl --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm GIves Error: <b>Warning</b>: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in <b>/home/simon/php348--with-mysql=/usr/local/mysql-4.0.18/bin/test.php</b> on line <b>4</b><br /> error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in <b>/home/simon/php348--with-mysql=/usr/local/mysql-4.0.18/bin/test.php</b> on line <b>4</b><br /> b>Warning</b>: fsockopen(): php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in <b>/home/simon/php348--with-mysql=/usr/local/mysql-4.0.18/bin/test.php</b> on line <b>4</b><br /> <b>Warning</b>: fsockopen(): failed to activate SSL mode 2 in <b>/home/simon/php348--with-mysql=/usr/local/mysql-4.0.18/bin/test.php</b> on line <b>4</b><br /> failed SSLhandshake<br /> PHP 5 RC3 PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in /home/simon/php348/bin/test.php on line 4 Previous Comments: ------------------------------------------------------------------------ [2004-07-14 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-07-06 16:02:45] [EMAIL PROTECTED] Please update first to PHP 4.3.7!! ------------------------------------------------------------------------ [2004-06-13 12:13:55] toppi at kacke dot de glftpd 1.3x Linux + TLS ------------------------------------------------------------------------ [2004-06-12 16:53:14] [EMAIL PROTECTED] What sftp server daemon are you using? ------------------------------------------------------------------------ [2004-06-12 14:49:38] toppi at kacke dot de 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 this bug report at http://bugs.php.net/?id=28754&edit=1