#19121 [Bgs]: fsockopen("tls:// .... fails without reason.

From: Date: Tue, 27 Aug 2002 13:40:06 +0000
Subject: #19121 [Bgs]: fsockopen("tls:// .... fails without reason.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17934@lists.php.net to get a copy of this message
ID: 19121 Updated by: wez@php.net Reported By: mbabcock-php@fibrespeed.net Status: Bogus Bug Type: Sockets related Operating System: Linux 2.2.14 PHP Version: 4.2.2 New Comment: The docs for fsockopen state: As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the hostname with either 'ssl://' or 'tls://' to use an SSL or TLS client connection over TCP/IP to connect to the remote host. Your version of PHP is not PHP 4.3, so this won't work. Previous Comments: ------------------------------------------------------------------------ [2002-08-27 09:32:51] derick@php.net Never mind that, just lose the tls:// and you can connect fine, but of course you need to send encrypted packets yourself. fsockopen opens a _socket_, not an URL. User error -> bogus ------------------------------------------------------------------------ [2002-08-27 09:30:50] derick@php.net Where did you read PHP supports tls:// ? Derick ------------------------------------------------------------------------ [2002-08-27 09:24:09] mbabcock-php@fibrespeed.net I'm doing the following: $fp = fsockopen("tls://hostname.domain.com", 2080, $errno, $errstr, 30); if (!$fp) die ("Unable to connect: $errstr ($errno)"); ... its giving me "Unable to connect: (0)" every time (hostname.domain.com is a valid Internet host I administer). I'm running a "tcpdump -n port 2080" on the web server and there are no packets showing up at all. There are no messages in /var/log/(messages|daemon|kern) or in the Apache error_log. Any ideas? Feel free to connect to https://www.fibrespeed.net/phpinfo.php for information on my configuration. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19121&edit=1

« previous php.bugs (#17934) next »