|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-26 09:31 UTC] daniel dot marschall at rinntech dot com
[2015-06-26 11:27 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2015-06-26 11:27 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 06:00:01 2025 UTC |
Description: ------------ In the PHP.ini I have changed "zend.multibyte = On". Running phpinfo() shows that the value was changed. But the UTF8 BOM of the PHP file is still sent to the client. Google Chrome has a very buggy behavior when it is receiving a BOM in front of <html> . (Note: "mbstring.internal_encoding" is set to default) Test script: --------------- (This test script is written in ASCII representation - see the BOM!) <?php // Just a demonstration to show that the UTF-8 BOM was actually sent flush(); header('abc:def'); // will fail, because of the previously sent BOM // Now check that the change in the PHP file did work. var_dump(ini_get('zend.multibyte')); // string(1) "1" ?> Expected result: ---------------- Warning: Cannot modify header information - headers already sent ... string(1) "1" Actual result: -------------- string(1) "1"