Req #52207 [NEW]: Behaviour not properly documented

From: Date: Tue, 29 Jun 2010 22:28:08 +0000
Subject: Req #52207 [NEW]: Behaviour not properly documented
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4612@lists.php.net to get a copy of this message
From: Operating system: Debian PHP version: 5.3.2 Package: Documentation problem Bug Type: Feature/Change Request Bug description:Behaviour not properly documented 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 bug report at http://bugs.php.net/bug.php?id=52207&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52207&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52207&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52207&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52207&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52207&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52207&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52207&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52207&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52207&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52207&r=support Expected behavior: http://bugs.php.net/fix.php?id=52207&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52207&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52207&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52207&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52207&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52207&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52207&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52207&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52207&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52207&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52207&r=mysqlcfg

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