Req #52207 [Opn]: header() not fully documented

From: Date: Tue, 29 Jun 2010 22:29:20 +0000
Subject: Req #52207 [Opn]: header() not fully documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4613@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 User updated by: olafvdspek at gmail dot com Reported by: olafvdspek at gmail dot com -Summary: Behaviour not properly documented +Summary: header() not fully documented Status: Open Type: Feature/Change Request Package: Documentation problem Operating System: Debian PHP Version: 5.3.2 New Comment: Oops, I swapped the actual and expected results, sorry. Previous Comments: ------------------------------------------------------------------------ [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

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