Re: [PHP-DEV] PHP 4.0 Bug #5885: mod_php sends response body for HEAD Requests From: Adam Trachtenberg (adam <email protected>)
Date: 08/02/00

On Tue, 1 Aug 2000, Rasmus Lerdorf wrote:

> > | Try Apache-1.3.12 and PHP 4.0.1
> >
> > My bug report mentioned Apache 1.3.12 and PHP 4.0.2-dev (20/21. july 2000), so
> > i think this bug might be in PHP 4.0.1, too :-)
>
> Ok, but I am not convinced it is a PHP bug. Haven't looked into it yet
> though, but Apache does a redirect and it would appear that it isn't
> preserving the header-only bit.

We've noticed similar behavior and also believe it to be a bug in
Apache. Here is an Apache bug report (not filed by us, but identical to
the behavior we see).

http://bugs.apache.org/index.cgi/full/4920

As you'll note:

1) 304 is correctly sent to the client. The status-code of 200 is only
/logged/.

2) This only occurs for requests for directory indexes. As part of the
direct from from / to /index.html, the incorrect status-code gets set.

-adam

-- 
/ adam maccabee trachtenberg | visit college life online \
\ adam <email protected>           | http://www.student.com    /

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>