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

Bug #16586 namespace duplication
Submitted: 2009-09-09 23:04 UTC
From: davidmclaughlin Assigned:
Status: Feedback Package: XML_Serializer (version 0.20.0)
PHP Version: Irrelevant OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-09-09 23:04 UTC] davidmclaughlin (David McLaughlin)
Description: ------------ When tags are modified near line 1166 and 1169 in Serializer.php they are often prepended with the namespace more than once, resulting in invalid XML. Test script: --------------- <?php require_once 'XML/Serializer.php'; $options = array( XML_SERIALIZER_OPTION_RETURN_RESULT => true, XML_SERIALIZER_OPTION_NAMESPACE => "x", ); $serializer = &new XML_Serializer($options); $foo=array(array(1)); echo $serializer->serialize($foo); ?> Expected result: ---------------- <x:array> <x:XML_Serializer_Tag> <x:XML_Serializer_Tag>1</x:XML_Serializer_Tag> </x:XML_Serializer_Tag> </x:array> Actual result: -------------- <x:array> <x:x:XML_Serializer_Tag> <x:XML_Serializer_Tag>1</x:XML_Serializer_Tag> </x:x:XML_Serializer_Tag> </x:array>

Comments

 [2012-01-24 18:08 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
The attached isn't a proper patch, and it's not clear where you expect the new method to be called from. Can you adjust this please?