#19954 [NEW]: HTTP Response Code not set correctly
| From: | max at home-werner dot de | Date: | Thu, 17 Oct 2002 15:27:17 +0000 |
| Subject: | #19954 [NEW]: HTTP Response Code not set correctly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-22668@lists.php.net to get a copy of this message | ||
From: max@home-werner.de
Operating system: Linux 2.4.19
PHP version: 4CVS-2002-10-17
PHP Bug Type: Apache2 related
Bug description: HTTP Response Code not set correctly
I've compiled Apache 2.0.43 and PHP 4.3.0-dev from CVS.
I configured PHP with --with-apxs2=/usr/local/apache2/bin/apxs.
In my httpd.conf I have the following lines:
ErrorDocument 404 /error-404.php
ErrorDocument 403 /error-403.php
These two scripts DON'T output any header information via header(). They
just output some HTML.
Now when I try to GET an document that does not exist, I get "HTTP/1.1 200
OK" and the document /error-404.php instead of a "HTTP/1.1 404 Not
Found".
I think that the problem exists in the apache2filter SAPI since this
behaviour does not occur in the "old" apache SAPI.
--
Edit bug report at http://bugs.php.net/?id=19954&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19954&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19954&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19954&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19954&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19954&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19954&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19954&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19954&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19954&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19954&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19954&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19954&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19954&r=isapi