#34611 [Opn->Fbk]: fsockopen claims to have no SSL-support

From: Date: Fri, 23 Sep 2005 11:13:55 +0000
Subject: #34611 [Opn->Fbk]: fsockopen claims to have no SSL-support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85486@lists.php.net to get a copy of this message
ID: 34611 Updated by: derick@php.net 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

« previous php.bugs (#85486) next »