ID:               41952
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hedvall at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Warning
 Operating System: Win2k SP4
 PHP Version:      6CVS-2007-07-10 (snap)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------

[2007-07-10 17:02:48] hedvall at gmail dot com

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41952&edit=1

Reply via email to