ID:               31208
 Updated by:       [EMAIL PROTECTED]
 Reported By:      taavi at meos dot ee
-Status:           Open
+Status:           Bogus
 Bug Type:         *XML functions
 Operating System: Linux 2.6.9
 PHP Version:      5.0.3
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

see bug #31139 which was already fixed in cvs


Previous Comments:
------------------------------------------------------------------------

[2004-12-20 18:37:05] taavi at meos dot ee

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>&lt;a href=&quot;hello&quot;&gt;tere&lt;/a&gt;</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:
*/


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31208&edit=1

Reply via email to