Doc #52485 [Opn->Csd]: provided example doesn't work in all circumstances

From: Date: Tue, 21 Sep 2010 15:49:25 +0000
Subject: Doc #52485 [Opn->Csd]: provided example doesn't work in all circumstances
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5100@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52485&edit=1 ID: 52485 Updated by: markskilbeck@php.net Reported by: c dot kworr at gmail dot com Summary: provided example doesn't work in all circumstances -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: FreeBSD-8.1 PHP Version: 5.3.3 -Assigned To: +Assigned To: markskilbeck Block user comment: N 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. Previous Comments: ------------------------------------------------------------------------ [2010-09-21 17:49:03] markskilbeck@php.net Automatic comment from SVN on behalf of markskilbeck Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=303643 Log: #52485 FastCGI 404 header ------------------------------------------------------------------------ [2010-07-29 12:39:22] c dot kworr at gmail dot com Description: ------------ The sample code to return 404 is incorrect for FastCGI mode. in FastCGI mode it would return 200, unless "header('Status: 404 File not found');" would be added. This means 'Status: *' is the third special-case header call besides 'HTTP/1.*' and 'Location: *' Test script: --------------- <?php header('Status: 404 Dead beef.') ?> This will return 404 for FastCGI request. <?php header('HTTP/1.0 404 Dead beef.') ?> This will return 404 for CGI request. You need to specify both to get code working under all circumstances. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52485&edit=1

« previous php.doc.bugs (#5100) next »