|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-11 07:27 UTC] tony2001@php.net
[2007-07-11 08:34 UTC] hedvall at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
Description: ------------ After upgrading to the latest PHP6 build from 6CVS-2007-06-21 the compiler no longer accepts the UTF-8 BOM (Byte Order Mark) to be sent before the headers. It might be correct to not send the headers after any other output but it hasn't caused any trouble with any newer browser on any platform (win, mac, linux). I always remove the BOM before the sites go live but when developing it's easier to leave it there until the page is finished. This is not a duplicate of 22108. Reproduce code: --------------- <?php header("HTTP/1.0 404 Not Found"); ?> Expected result: ---------------- 404 header sent without warning Actual result: -------------- Warning: Cannot modify header information - headers already sent by (output started at [...]/header.php:1) in [...]/header.php on line 2