#24177 [Opn->Fbk]: header() call doesn't replace 404 status code

From: Date: Fri, 13 Jun 2003 20:19:18 +0000
Subject: #24177 [Opn->Fbk]: header() call doesn't replace 404 status code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41876@lists.php.net to get a copy of this message
 ID:               24177
 Updated by:       sniper@php.net
 Reported By:      ohrn@php.net
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.3.2
 New Comment:

# lynx -dump -head http://se.php.net/imap
HTTP/1.1 200 OK
Date: Fri, 13 Jun 2003 19:17:17 GMT
Server: Apache/2.0.46 (Unix) mod_ssl/2.0.46 OpenSSL/0.9.6b PHP/4.3.2
X-Powered-By: PHP/4.3.2
Content-language: en
Set-Cookie: COUNTRY=FIN%2C213.243.181.8; expires=Fri, 20-Jun-2003
19:17:17 GMT;
 path=/; domain=.php.net
Status: 200 OK
Last-Modified: Fri, 13 Jun 2003 19:09:38 GMT
Vary: Cookie
Connection: close
Content-Type: text/html;charset=ISO-8859-1

That works just fine?



Previous Comments:
------------------------------------------------------------------------

[2003-06-13 13:42:09] ohrn@php.net

Description:
------------
Using Apache 2.0.46 and PHP 4.3.2 compiled with --with-apxs2

When a PHP page is used as an ErrorDocument page, calling any variation
of header() to replace the status code doesn't work. The client always
receive 404.

For example, try downloading from se.php.net:
http://se.php.net/get/php-4.3.2.tar.gz/from/this/mirror

You'll se that a Location header has been added (by the call to
header() in /include/do-download.inc) but the status returned is still
404, not 302 as expected.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24177&edit=1



Thread (12 messages)

« previous php.bugs (#41876) next »