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

Bug #17315 categories are pasted together
Submitted: 2010-04-16 10:48 UTC
From: lapo Assigned: kguest
Status: Closed Package: XML_RSS (version 1.0.0)
PHP Version: 5.2.12 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [2010-04-16 10:48 UTC] lapo (Lapo Luchini)
Description: ------------ Parsing a feed with multiple category tags gets a single-valued $item['category'] with all the values pasted together. Test script: --------------- <? require_once('XML/RSS.php'); $p = new XML_RSS('http://musicreporters.rockol.it/dalvivo/feed/'); $p->parse(); foreach ($p->getItems() as $item) echo $item['category'] . "\n"; ?> Expected result: ---------------- Reportsassagoconcertiforumlitfibalivereuniontour Reportsbresciaconcertifatso jetsonlatte piùlive ... Reportsbresciaconcertilatte piùliveteatro degli orrori Actual result: -------------- array('Reports','assago','concerti','forum','litfiba','live','reunion','to ur') ... array('Reports','brescia','concerti','latte più','live','teatro degli orrori')

Comments

 [2010-05-02 17:25 UTC] lapo (Lapo Luchini)
 [2010-05-02 17:25 UTC] lapo (Lapo Luchini)
I added a patch (a work-around really) that I'm using in the meantime that the problem is analyzed and solved more properly.
 [2011-05-01 21:52 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2011-05-01 23:01 UTC] kguest (Ken Guest)
-Status: Assigned +Status: Closed
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ fixed in new release v 1.0.2 (and also svn)