#41952 [NEW]: Problem with PHP6 and Byte Order Mark

From: Date: Tue, 10 Jul 2007 17:02:48 +0000
Subject: #41952 [NEW]: Problem with PHP6 and Byte Order Mark
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114854@lists.php.net to get a copy of this message
From: hedvall at gmail dot com Operating system: Win2k SP4 PHP version: 6CVS-2007-07-10 (snap) PHP Bug Type: Compile Warning Bug description: Problem with PHP6 and Byte Order Mark 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 bug report at http://bugs.php.net/?id=41952&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41952&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41952&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41952&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41952&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41952&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41952&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41952&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41952&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41952&r=support Expected behavior: http://bugs.php.net/fix.php?id=41952&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41952&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41952&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41952&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41952&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41952&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41952&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41952&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41952&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41952&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41952&r=mysqlcfg

« previous php.bugs (#114854) next »