#32122 [Opn->Csd]: header("Status: 404 Not Found"); does not work

From: Date: Thu, 31 Mar 2005 16:05:36 +0000
Subject: #32122 [Opn->Csd]: header("Status: 404 Not Found"); does not work
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969367768@lists.php.net to get a copy of this message
ID: 32122 Updated by: vrana@php.net Reported By: OvdSpek at LIACS dot NL -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Linux, Windows XP, 2003 PHP Version: 5CVS-2005-03-01 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Note about PHP 3 and Status header removed. PHP 3 is old and the note was confusing. Previous Comments: ------------------------------------------------------------------------ [2005-03-15 14:14:42] OvdSpek at LIACS dot NL Opened again (sorry, my mistake). ------------------------------------------------------------------------ [2005-03-15 14:12:56] OvdSpek at LIACS dot NL > Note: In PHP 3, this only works when PHP is compiled as an Apache module. You can achieve the same effect using the Status header. This would be correct: Note: In PHP 3 you can achieve the same effect using the Status header, but only when PHP is compiled as Apache module. ------------------------------------------------------------------------ [2005-03-15 14:10:54] OvdSpek at LIACS dot NL > 2. you can achieve the same effect with Status header only in PHP 3. No, it doesn't mean that. That statement means that the status header method always works, except in PHP 3, where it only works if PHP is ran as module. ------------------------------------------------------------------------ [2005-03-15 14:08:12] vrana@php.net This is in the docs: "header that starts with the string HTTP/ ... In PHP 3, this only works when PHP is compiled as an Apache module. You can achieve the same effect using the Status header." IMHO it's obvious that 1. "this" means "header that starts with the string HTTP/" and 2. you can achieve the same effect with Status header only in PHP 3. ------------------------------------------------------------------------ [2005-03-10 12:49:17] jorton@php.net I don't think that's expected to work for anything other than the CGI SAPI, so I think this is a docs bug if anything. Certainly sapi_header_op doesn't special-case Status:; so this isn't apache2-SAPI-specific. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32122 -- Edit this bug report at http://bugs.php.net/?id=32122&edit=1

« previous php.doc (#969367768) next »