PHP 4.0 Bug #9433: ErrorDocument 404 pointing to PHP file
| From: | justin at hot dot rr dot com | Date: | Sat, 24 Feb 2001 03:34:31 +0000 |
| Subject: | PHP 4.0 Bug #9433: ErrorDocument 404 pointing to PHP file | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47371@lists.php.net to get a copy of this message | ||
From: justin@hot.rr.com
Operating system: FreeBSD 4.1.1-RELEASE
PHP version: 4.0.4pl1
PHP Bug Type: Apache related
Bug description: ErrorDocument 404 pointing to PHP file
Apache 1.3.12
I wrote a script that redirects a person to a different page based on the REQUEST_URI and HTTP_HOST
apache variables. Ever since PHP 4.0.2, Internet Explorer started reporting 404 errors instead of
going to the appropriate page. What is even more mysterious is that it is the IE 404 error page,
not the server wide page nor the default 404 error page for the site. To top it all off, it works
for Opera as well as Netscape. I think this must be caused by the way PHP handles headers and the
way IE interprets them, because I can put PHP version 4.0.1pl2 on and it will work great even with
IE, then any versions afterwards cause an error. An example page is at http://test.jwdx.com I have also added header("Status: 404 Not
Found") as stated in other bug reports. I would not blame this on PHP except for the fact that
different versions respond differently with all other circumstances remaining the same.
--Justin Bachus
--
Edit Bug report at: http://bugs.php.net/?id=9433&edit=1