Bug 124582 - fgets erroring on https protocol
fgets erroring on https protocol
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: php (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-05-27 14:21 EDT by Sean
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-06-21 13:24:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:272 normal SHIPPED_LIVE Updated php packages 2004-09-01 00:00:00 EDT

  None (edit)
Description Sean 2004-05-27 14:21:47 EDT
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):

How reproducible:

Steps to Reproduce:
sample code, run against default redhat logo page:
if (!$fp) {
   echo "$errstr ($errno)<br />\n";
} else {
   $out="GET / HTTP/1.1\r\n";
   $out .="Host:\r\n";
   $out .="Connection: Close\r\n\r\n";

   fwrite ($fp,$out);
   while (!feof($fp)) {
      echo fgets($fp,128);

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
Comment 1 Sean 2004-05-27 14:35:54 EDT
link to bug at php web site. apparently affects multiple version of
php across several os and webservers.

Comment 2 Robert Scheck 2004-05-28 03:52:28 EDT
It seems to concern all RHEL3 supported architectures...
Comment 3 Joe Orton 2004-05-28 03:59:53 EDT
Thanks for the report.
Comment 4 Joe Orton 2004-06-21 11:52:14 EDT
Test packages are now available which fix this issue:


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.
Comment 5 Sean 2004-06-21 13:24:38 EDT
Thank you, no longer getting the SSL error messages, and does not 
seem to cause any other problems in our dev environment.
Comment 6 Jay Turner 2004-09-01 22:37:10 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.