ID: 48025 Updated by: j...@php.net Reported By: myh at live dot com -Status: Open +Status: Bogus Bug Type: *Unicode Issues Operating System: Windows XP PHP Version: 6CVS-2009-04-20 (CVS) New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2009-04-20 11:36:02] myh at live dot com Description: ------------ I find PHP includes (require function) the UTF-8 BOM (byte order mark) in my webpages. That is: I have three pages, Normal.php, IncParms.php and Parameters.php. Parameters.php is encoded in UTF-8 with BOM. (You can download the here: http://cid-87cef5e6683b5427.skydrive.live.com/self.aspx/Share/PhpBomBug.zip ) Normal.php shows the normal layout. But IncParms.php not only includes the PHP code of Parameters.php but also includes the BOM of it. And the layout shown by IncParms.php is incorrect and different from Normal.php. You can see the included BOM of the page generated by IncParms.php by a hexadecimal editor. I recorded a video to exhibit how to reproduce the bug: http://cid-87cef5e6683b5427.skydrive.live.com/self.aspx/Share/PhpBomBug.avi Reproduce code: --------------- http://cid-87cef5e6683b5427.skydrive.live.com/self.aspx/Share/PhpBomBug.zip Expected result: ---------------- PHP shouldn't include the UTF-8 BOM. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48025&edit=1