#20313 [Opn->Fbk]: fsockopen fails with ssl://

From: Date: Fri, 08 Nov 2002 16:58:14 +0000
Subject: #20313 [Opn->Fbk]: fsockopen fails with ssl://
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24358@lists.php.net to get a copy of this message
ID: 20313 Updated by: sander@php.net Reported By: chris.baxter@ic24.net -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: Linux Redhat 2.4.2-2 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-11-08 10:49:31] chris.baxter@ic24.net Apache 1.3.27, OpenSSL 0.9.6b When adding ssl:// to my fsockopen routine it fails to open a connection but gives no reason for failure. If I remove ssl:// from the command it work fine and the server disconnects for failing to establish an ssl connection as I would expect. <?php // This opens a standard socket connection //$fp = fsockopen("mywebsite.com", 4437, $errno, $errstr); // This doesn't open a socket or give a reason for failure $fp = fsockopen("ssl://mywebsite.com", 4437, $errno, $errstr); if (!$fp) { echo "ERROR: $errno - $errstr<br>\n"; } else { echo "OK<br>\n"; fwrite($fp,"my data is here\n"); echo fread($fp, 26); fclose($fp); } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20313&edit=1

« previous php.bugs (#24358) next »