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

Bug #6747 parse() not returning any content
Submitted: 2006-02-10 18:21 UTC
From: rgwin at drivetheweb dot com Assigned:
Status: Bogus Package: XML_RSS (version 0.9.9)
PHP Version: 4.4.0 OS: OSX and RH Linux
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 : 41 + 43 = ?

 
 [2006-02-10 18:21 UTC] rgwin at drivetheweb dot com
Description: ------------ I am trying to use the beta (0.9.9) XML_RSS parser work, using the implementation example from the documentation. Works fine with 0.9.2, but parse() generates no content with 0.9.9. Is there an undocumented change in implementation? Note that in my examples I am outputting getItems(), but I also tried a print_r($rss) directly after the $rss->parse(), and could see that the 0.9.2 object had content and the 0.9.9 object didn't. So it's happening that early. That example was too messy to include here though. Test script: --------------- //require_once "XML_RSS-0.9.2/RSS.php"; // works require_once "XML_RSS-0.9.9/RSS.php"; // doesn't work $rss =& new XML_RSS("http://slashdot.org/slashdot.rdf"); $rss->parse(); echo count($rss->getItems()) . " Items:\n"; foreach ($rss->getItems() as $item){ echo $item['title'] . "\n"; } Expected result: ---------------- 10 Items: Oracle to buy JBoss (and others) Internet Radio Failing to Find Support? Inside the BlackBerry Workaround PlayStation 3 May Play Too Much Newest Patent Threat to MPEG-4 Moore Calls Game Discs Ridiculous Limited Email Surveillance Approved Scaremongering over Spyware? Oracle to Layoff 2000 Jobs Apple Gifts Top WebKit Contributors with MacBooks Actual result: -------------- 0 Items:

Comments

 [2006-02-10 18:24 UTC] rgwin at drivetheweb dot com
oops, please substitute "make" for "use" in my first sentence.. or remove "work" ;)
 [2006-02-11 18:44 UTC] rgwin at drivetheweb dot com
My mistake. I had to upgrade to the latest XML_Parser.
 [2006-12-23 20:21 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!