Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Warning: fread(): SSL: fatal protocol

Status
Not open for further replies.

dongbamage

Programmer
Nov 3, 2004
32
GB
Hi guys I'm trying to use PEAR HTTP:Request, which requires Socket.php, URL.php and some other bits and pieces.

The problem I'm having is when I run my code I get the following error:

Warning: fread(): SSL: fatal protocol error in /files/home3/munchexpress/Includes/Net/Socket.php on line 262

I am having to use PEAR as my Host doe not support CURL, and I am trying to setup a secure payment system...

does anyone know about this?

Cheers guys!
 
Are you using IIS?
When using SSL, Microsoft IIS will violate the protocol by closing the connection without sending a close_notify indicator. PHP will report this as "SSL: Fatal Protocol Error" when you reach the end of the data. To workaround this, you should lower your error_reporting level not to include warnings. PHP 4.3.7 and higher can detect buggy IIS server software when you open the stream using the https:// wrapper and will suppress the warning for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top