[Bug 592442] Re: fopen fails on some SSL urls
Arjan van der Veen
592442 at bugs.launchpad.net
Tue Aug 17 16:23:10 BST 2010
I want to add a comment that the bug is available for more servers:
<?php
#$ufurl = "https://server.db.kvk.nl/"; # FAILS
#$ufurl = "https://gmail.com/"; #OK
#$ufurl = "https://cas.ucdavis.edu/login"; #FAILS
$fp = fopen($ufurl, 'r');
$data = fread($fp, 10000);
var_dump($data);
?>
output:
PHP Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:1407741A:SSL routines:func(119):reason(1050) in /tmp/urltest.php on line 7
PHP Warning: fopen(): Failed to enable crypto in /tmp/urltest.php on line 7
PHP Warning: fopen(https://server.db.kvk.nl/): failed to open stream: operation failed in /tmp/urltest.php on line 7
PHP Warning: fread() expects parameter 1 to be resource, boolean given in /tmp/urltest.php on line 8
bool(false)
Does anybody have a workaround?
--
fopen fails on some SSL urls
https://bugs.launchpad.net/bugs/592442
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list