| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-12-20 20:39 UTC] rrichards@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
Description: ------------ XML file contains html: <a href="hello">tere</a> which is encoded and sent as $data to parsing function: <?xml version="1.0" encoding="ISO-8859-1" ?> <lahendus> <L>1</L> <lNimetus>Baaslahendus</lNimetus> <lKirjeldus>Minu seaded, kasutajakontod, s?steemi seaded</lKirjeldus> <lVersioon>2.0.0</lVersioon> <lMemo><a href="hello">tere</a></lMemo> </lahendus> Reproduce code: --------------- ... /* more code here, not that important now */ $parser = xml_parser_create('ISO-8859-1'); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING,'ISO-8859-1'); xml_parse_into_struct($parser, $data, $values, $tags); ... /* more code here, not that important now */ $xml = new tmc_xml; $asjad = $xml->loe_andmed('lahendus.xml','lahendus'); echo $asjad[0]['lMemo']; Expected result: ---------------- <a href="hello">tere</a> Actual result: -------------- /* nothing here, only: <html><body></body></html> Some remarks: this code works perfectly in php 5.0.2 So, i unlinked php 5.0.3 and recompiled php 5.0.2 with same options - no problems - acts as expected: */