From: [EMAIL PROTECTED] Operating system: windows 2000 PHP version: 4.2.3 PHP Bug Type: Output Control Bug description: php doesn't ignore the utf-8 BOM
Problem: When a php file is saved in utf-8 format with the UTF-8 BOM as the first three bytes of the file (EF BB BF), PHP doesn't ignore these bytes when loading and compiling the file, but instead considers them output coming prior to the <?php. This causes incorrect display of the page and failure of any http header output. It does this even when the internal character format is set in php.ini to be utf-8. Desired outcome: PHP recognizes the utf-8 bom and disregards it. -- Edit bug report at http://bugs.php.net/?id=22108&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22108&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22108&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22108&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22108&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22108&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22108&r=support Expected behavior: http://bugs.php.net/fix.php?id=22108&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22108&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22108&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22108&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22108&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22108&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22108&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22108&r=gnused