From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Description of problem: repeated "fgets(): SSL: fatal protocol error" errors through output when trying to use fsockopen with ssl enabled websites. no errors encountered on fedora2 with php 4.3.4 Version-Release number of selected component (if applicable): php-4.3.2-11.ent How reproducible: Always Steps to Reproduce: sample code, run against default redhat logo page: <? $fp=fsockopen("ssl://127.0.0.1",443,$errno,$errstr,30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out="GET / HTTP/1.1\r\n"; $out .="Host: 127.0.0.1\r\n"; $out .="Connection: Close\r\n\r\n"; fwrite ($fp,$out); while (!feof($fp)) { echo fgets($fp,128); } fclose($fp); } ?> Actual Results: repeated error messages: " fgets(): SSL: fatal protocol error in /home/allins/z.php on line 12 " Expected Results: no errors Additional info: functionality required for ssl-enabled xml-rpc webservices
link to bug at php web site. apparently affects multiple version of php across several os and webservers. http://bugs.php.net/bug.php?id=23220
It seems to concern all RHEL3 supported architectures...
Thanks for the report.
Test packages are now available which fix this issue: http://people.redhat.com/jorton/Taroon-php/ The error "SSL: fatal protocol error" is strictly correct, since it shows that some versions of mod_ssl do not issue the "close_notify" alert to correctly shut down the SSL connection. However, this issue affects many SSL servers, and it's not usually necessary to worry about it; I've downgraded the warning from an E_WARNING to an E_NOTICE in the update packages so it doesn't appear by default. Thanks for the report.
Thank you, no longer getting the SSL error messages, and does not seem to cause any other problems in our dev environment.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-272.html