php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19954 HTTP Response Code not set correctly
Submitted: 2002-10-17 10:27 UTC Modified: 2002-11-02 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: max at home-werner dot de Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4CVS-2002-10-17 OS: Linux 2.4.19
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: max at home-werner dot de
New email:
PHP Version: OS:

 

 [2002-10-17 10:27 UTC] max at home-werner dot de
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-17 10:31 UTC] iliaa@php.net
When you refer to the "old" sapi, are you talking about the 1.3.X sapi or previous versions of the apache2filter sapi?
 [2002-10-17 12:32 UTC] max at home-werner dot de
I am refering to the 1.3.x API as the "old" API!
 [2002-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-01-27 14:40 UTC] bking at starbridgesystems dot com
This seems to be the same bug as 21074.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC