| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2015-09-17 19:44 UTC] requinix@php.net
 
-Status: Open
+Status: Feedback
  [2015-09-17 19:44 UTC] requinix@php.net
  [2015-09-27 04:22 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
Description: ------------ simple_xml_string etc. throws a strange tag-error, if a BOM is present. 1. Either it should remove any BOM first, like with the following code: // remove BOM $bom = pack('H*', 'EFBBBF'); $xmlData = preg_replace("/^$bom/", '', $xmlData); 2. Or a correct error that BOM is not supported, should be thrown. Test script: --------------- Any $xmlData saved with UTF8 BOM: $xml = simplexml_load_string($xmlData); Expected result: ---------------- Should work with BOM or throw an correct error Actual result: -------------- It errors with wrong error message