|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-23 13:13 UTC] derick@php.net
[2005-09-23 13:29 UTC] werner at usit dot uio dot no
[2005-09-23 14:01 UTC] sniper@php.net
[2005-09-23 14:06 UTC] werner at usit dot uio dot no
[2005-09-23 14:22 UTC] wez@php.net
[2005-09-26 10:38 UTC] werner at usit dot uio dot no
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
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.