Doc #55436 [NEW]: Bad Examples on header()

From: Date: Tue, 16 Aug 2011 22:45:07 +0000
Subject: Doc #55436 [NEW]: Bad Examples on header()
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7017@lists.php.net to get a copy of this message
From: Operating system: Linux PHP version: 5.3.6 Package: Documentation problem Bug Type: Documentation Problem Bug description:Bad Examples on header() Description: ------------ --- From manual page: http://www.php.net/function.header%23Parameters --- The example for a 404 header assumes you are using http/1.0 it should be header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found") also, for the 404 example and the location example should at lest show you how to use the http_response_code maybe in a example #3 Test script: --------------- <?php header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", null, 404); -- Edit bug report at https://bugs.php.net/bug.php?id=55436&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55436&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55436&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55436&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55436&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55436&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55436&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55436&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55436&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55436&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55436&r=support Expected behavior: https://bugs.php.net/fix.php?id=55436&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55436&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55436&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55436&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55436&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55436&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55436&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55436&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55436&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55436&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55436&r=mysqlcfg

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