Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.4

Bug #144 HTTP_Request
Submitted: 2003-10-22 21:16 UTC
From: eromang at zataz dot net Assigned:
Status: Bogus Package: HTTP_Request
PHP Version: 4.3.3 OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2003-10-22 21:16 UTC] eromang at zataz dot net
Description: ------------ Hello, I have install php 4.3.3 with openssl support. My phpinfo() say's me : Registered PHP Streams : php, http, ftp, https, ftps, compress.zlib also, OpenSSL support enabled OpenSSL Version OpenSSL 0.9.6k 30 Sep 2003 But when I do an : $req = &new HTTP_Request("https://" . $url); I have this error message : Warning: fread(): SSL: fatal protocol error in /usr/local/php/lib/php/Net/Socket.php on line 243 Any idea why this error ? Thxs in advance. Regards

Comments

 [2003-10-25 14:03 UTC] avb
The error has nothing to do with HTTP_Request. Moving to proper category.
 [2003-12-08 21:29 UTC] eromang at zataz dot net
Hello, 2 month later i have the same problem.... Nobody answer on this bug ? Array ( [orderID] => 1 [PSPID] => zataztest [PSWD] => test [amount] => 1 [currency] => EUR [CARDNO] => 345333344 [ED] => 12%2F03 [COM] => Test%2BZATAZ [BRAND] => VISA [EMAIL] => test%2540test.com [CVC] => 345 [CN] => test [SHASign] => %DC%BE%E1%28%B1i%85%0D%D8%0E%18xJ%8Bn%9E%A4%7F%E0M ) Warning: fread(): SSL: fatal protocol error in /usr/lib/php/Net/Socket.php on line 243
 [2004-04-26 22:39 UTC] chagenbu
You need to compile PHP with SSL support for this to work. Not a bug.
 [2004-08-02 12:18 UTC] david at inspiredthinking dot co dot uk
Getting a 'fread(): SSL: fatal protocol error' with a SSL connection to IIS. IIS doesn't terminate the SSL connection properly - with a 'close' hence the error. This is a known problem with IIS - Suggest changing the 'Warning' to 'Notice' if connected to IIS.
 [2004-10-18 07:03 UTC] justinpatrin
This has nothing to do with SSL support. This is a malformed response from IIS servers. This can only be fixed in *this* package (you have to check the headers and silence the warning manually). See the PHP bug: http://bugs.php.net/bug.php?id=23220 And here is the relevant Net_Socket bug: http://pear.php.net/bugs/bug.php?id=2554 Hopefully Net_Socket can add an option to suppress the warning and HTTP_Request can silence it when IIS (or a specific version of IIS) sends a response back.
 [2004-10-18 15:56 UTC] chagenbu
Justin, did you perhaps mean to move this back to the HTTP_Request queue? Or is #2554 a duplicate of this with slightly overlapping information? Or, alternately, I'm just really confused.
 [2004-10-18 16:06 UTC] justinpatrin
You're right, I meant to switch it back to HTTP_Request. Sorry about that.
 [2004-10-18 18:29 UTC] avb
The warning in question is being raised when executing code in Net_Socket. How *exactly* do you expect it to be silenced in HTTP_Request?
 [2004-10-23 01:00 UTC] justinpatrin
Well, I meant for Net_Socket to haev an option to silence notices / warnings on the offending call. However, Net_Socket was just changed to silencs *all* of the *all* the time. Assuming this stays as-is, HTTP_Request doesn't need to be changed. (The idea for fixing in HTTP_Request would be that if the headers say that the server is IIS or the offending evrsion of IIS that it would tell Net_Socket to silence the warning.)
 [2004-12-13 22:49 UTC] avb
Looks like a new version of Net_Socket was released including the aforementioned fix, so HTTP_Request does not need to be changed. Closing the bug.
 [2006-12-23 20:27 UTC] cellog (Greg Beaver)
closed is for fixed bugs (in HTTP_Request, not Net_Socket)