--TEST-- Bug #35447 (xml_parse_into_struct() chokes on the UTF-8 BOM) --SKIPIF-- --FILE-- ]> A bient&244;t END_OF_XML; $parser = xml_parser_create_ns('UTF-8'); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); $result = xml_parse_into_struct($parser, $data, $vals, $index); xml_parser_free($parser); var_dump($vals); ?> --EXPECT-- array(1) { [0]=> array(5) { [u"tag"]=> unicode(8) "resource" [u"type"]=> unicode(8) "complete" [u"level"]=> int(1) [u"attributes"]=> array(2) { [u"key"]=> unicode(7) "rSeeYou" [u"type"]=> unicode(7) "literal" } [u"value"]=> unicode(13) "A bient&244;t" } }