Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.21.0

Bug #8048 Entities are not replaced in tags with attributes
Submitted: 2006-06-28 07:41 UTC
From: pear at coworld dot net Assigned: schst
Status: Closed Package: XML_Serializer (version 0.18.0)
PHP Version: 4.3.9 OS: Mandrake 9.1
Roadmaps: 0.19.0a1    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 26 + 13 = ?

 
 [2006-06-28 07:41 UTC] pear at coworld dot net (Christian K)
Description: ------------ Entities are not replaced in tags which contains attributes. The XML result is invalid. Test script: --------------- options = array( "indent" => " ", "linebreak" => "\n", "defaultTagName" => "unnamedItem", "scalarAsAttributes" => false, "attributesArray" => '_attributes', "contentName" => '_content' ); $data = array( 'foo' => array( '_attributes' => array( 'version' => '1.0', 'foo' => 'bar' ), '_content' => 'test & test' ), 'schst' => 'Stephan & Schmidt' ); $serializer = new XML_Serializer($options); $result = $serializer->serialize($data); $xml = $serializer->getSerializedData(); Expected result: ---------------- <array> <foo foo="bar" version="1.0">test & test</foo> <schst>Stephan & Schmidt</schst> </array> Actual result: -------------- <array> <foo foo="bar" version="1.0">test & test</foo> <schst>Stephan & Schmidt</schst> </array>

Comments

 [2006-12-01 17:01 UTC] schst (Stephan Schmidt)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.