#20313 [NEW]: fsockopen fails with ssl://

From: Date: Fri, 08 Nov 2002 16:49:31 +0000
Subject: #20313 [NEW]: fsockopen fails with ssl://
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24357@lists.php.net to get a copy of this message
From: chris.baxter@ic24.net Operating system: Linux Redhat 2.4.2-2 PHP version: 4.2.3 PHP Bug Type: Sockets related Bug description: fsockopen fails with ssl:// 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 bug report at http://bugs.php.net/?id=20313&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20313&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20313&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20313&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20313&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20313&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20313&r=support Expected behavior: http://bugs.php.net/fix.php?id=20313&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20313&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20313&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20313&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20313&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20313&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20313&r=isapi

« previous php.bugs (#24357) next »