Re: PHP 4.0 Bug #7373: PHP fails with error 0 in fopen() on some URLs that IE & Netscape can

From: Date: Sat, 21 Oct 2000 01:57:22 +0000
Subject: Re: PHP 4.0 Bug #7373: PHP fails with error 0 in fopen() on some URLs that IE & Netscape can
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35710@lists.php.net to get a copy of this message
On Sat, 21 Oct 2000, you wrote: >From: david@pastornet.net.au >Operating system: Solaris 2.6 >PHP version: 4.0.2 >PHP Bug Type: HTTP related >Bug description: PHP fails with error 0 in fopen() on some URLs that IE & > Netscape can > >Two issues: > >Issue [1]: --snip-- >Issue [2]: > I noticed this issue when chasing [1]. The replacement code I am > offering in [1] does not correct this problem. > > The usage of tmp_line + 8 seems to violate the HTTP 1.1 spec, because > for an example, it would be quite valid for them to introduce a new HTTP > version "1.11" before "1.2" and this would break PHP because the status > code would be at tmp_line + 9 instead of tmp_line + 8. > > 0123456789 [tmp_line index, view this with non-proportional font] > HTTP/1.1 200 > HTTP/1.11 200 While this may be a problem in the future, rfc2616 in section 1.3 does point out that the version major and minor numbers are to be treated as separate integers, in that 1.2 is an earlier version than 1.11. -- Regards, Alan van den Bosch Sanguis Pty Ltd /* All generalizations are false. */

« previous php.dev (#35710) next »