ID:               34611
 Updated by:       [EMAIL PROTECTED]
 Reported By:      werner at usit dot uio dot no
-Status:           Open
+Status:           Feedback
 Bug Type:         OpenSSL related
 Operating System: Solaris
 PHP Version:      4.4.0
 New Comment:

What is your configure line?


Previous Comments:
------------------------------------------------------------------------

[2005-09-23 12:55:24] werner at usit dot uio dot no

Description:
------------
fsockopen claims that it does not have SSL-support when using it on an
ssl:/-URL. phpinfo() says that OpenSSL is enabled, the
OpenSSL-functions openssl_pkey_new and openssl_csr_new works, and with
the exact same setup of Apache/PHP on Linux, this works great.

Reproduce code:
---------------
<?php
function callSock($adr, $port) {
  $fp = fsockopen($adr, $port, $errno, $errstr);
  if (!$fp) {
    echo "$errstr ($errno)<br/>\n";
    echo $fp;
  } else {
    echo "Kopla til $adr.<br>";
    fclose($fp);
  }
}
callSock("ssl://webmail.uio.no", 443);
callSock("webmail.uio.no", 80);
?>


Expected result:
----------------
Kopla til ssl://webmail.uio.no.
Kopla til webmail.uio.no.

Actual result:
--------------
Error 0 (0)
Kopla til webmail.uio.no.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34611&edit=1

Reply via email to