From: werner at usit dot uio dot no
Operating system: Solaris
PHP version: 4.4.0
PHP Bug Type: OpenSSL related
Bug description: fsockopen claims to have no SSL-support
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 bug report at http://bugs.php.net/?id=34611&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34611&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34611&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34611&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34611&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34611&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34611&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34611&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34611&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34611&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34611&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34611&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34611&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34611&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34611&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34611&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34611&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34611&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34611&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34611&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34611&r=mysqlcfg