Req #52207 [Opn->Csd]: header() not fully documented
| From: | kalle@php.net | Date: | Wed, 20 Oct 2010 02:54:08 +0000 |
| Subject: | Req #52207 [Opn->Csd]: header() not fully documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5262@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52207&edit=1
ID: 52207
Updated by: kalle@php.net
Reported by: olafvdspek at gmail dot com
Summary: header() not fully documented
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Documentation problem
Operating System: Debian
PHP Version: 5.3.2
-Assigned To:
+Assigned To: kalle
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-10-20 04:54:03] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304526
Log: Fixed bug #52207 (header() not fully documented)
------------------------------------------------------------------------
[2010-06-30 00:29:20] olafvdspek at gmail dot com
Oops, I swapped the actual and expected results, sorry.
------------------------------------------------------------------------
[2010-06-30 00:28:07] olafvdspek at gmail dot com
Description:
------------
If the first parameter is an empty string, the third parameter appears
to be
ignored. This isn't documented.
If the third parameter is specified, the first one appears to be
ignored, but this
isn't documented either.
Test script:
---------------
header('', false, 404);
Expected result:
----------------
GET /temp/404.php HTTP/1.0
Host: leiden.xwis.net
HTTP/1.0 200 OK
X-Powered-By: PHP/5.3.2-1
Content-type: text/html
Content-Length: 0
Connection: close
Date: Tue, 29 Jun 2010 22:21:19 GMT
Server: lighttpd/1.4.26
Actual result:
--------------
GET /temp/404.php HTTP/1.0
Host: leiden.xwis.net
HTTP/1.0 404 Not Found
X-Powered-By: PHP/5.3.2-1
Content-type: text/html
Content-Length: 0
Connection: close
Date: Tue, 29 Jun 2010 22:20:35 GMT
Server: lighttpd/1.4.26
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52207&edit=1