
vMyth - 2008-03-19 10:28:59
I'm trying to access HTTPS site ( and setting up some proxies together ). The script always works fine but sometime I don't know why it returns an error :
Warning: fgets() [function.fgets]: SSL: fatal protocol error in C:\xampp\htdocs\inc\http.php on line 183
According to the PHP manual :
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. If you are using fsockopen() to create an ssl:// socket, you are responsible for detecting and suppressing the warning yourself.
I'm using XAMPP under Windows with PHP 5.2.3. So do you have any comment about this ?