ID:               48025
 User updated by:  myh at live dot com
 Reported By:      myh at live dot com
 Status:           Bogus
 Bug Type:         *Unicode Issues
 Operating System: Windows XP
 PHP Version:      6CVS-2009-04-20 (CVS)
 New Comment:

I think my PHP have enabled zend-mulitbyte
because it was configured by --enable-snapshot-build, isn't it?
This is my phpinfo():
http://cid-87cef5e6683b5427.skydrive.live.com/self.aspx/Share/phpinfo.pdf

If my PHP certainly enable zend-multibyte, then the layout error
problem remains.


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

[2009-04-21 17:01:34] j...@php.net

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.



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

[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

Reply via email to