ID:               20313
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to