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

Bug #1253 Parse more than one string per instance
Submitted: 2004-04-21 17:01 UTC
From: as at mindcom dot de Assigned: davey
Status: Closed Package: XML_Tree
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
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 : 49 - 12 = ?

 
 [2004-04-21 17:01 UTC] as at mindcom dot de
Description: ------------ it is not possible to parse more than one document per instance. this could be fixed for example with $this->i=null at start of function "&getTreeFromString($str)" Reproduce code: --------------- require 'xml\tree.php'; $xmltree = new XML_Tree(); $fields = $xmltree->getTreeFromString($s1); print_r($fields); $xmltree->reset(); $fields =& $xmltree->getTreeFromString($s2); print_r($fields); Expected result: ---------------- Would be nice to see the Elements of $s1 and $s2 :-) Actual result: -------------- You will only see $s1 twice

Comments

 [2004-05-15 14:16 UTC] davey
Added in my uber patch. - Davey