ZF-8195: Call to undefined function getCommentCount()
Description
When importing the following feed:
http://vermontdailynews.com/feed/atom/
and then iterating through the Entries and calling getCommentCount() on each, I get the following error:
Fatal error: Call to undefined function getCommentCount() in path\to\library\Zend\Feed\Reader\Entry\Atom.php on line 298
Comments
Posted by Thierry Jossermoz (thierry@jossermoz.net) on 2009-11-05T18:39:55.000+0000
Hi,
There was a typo in Zend_Feed_Reader_Entry_Atom on line 298:
{{$commentcount = $this->getExtension('Thread')>getCommentCount();}}
Attached patch fixes the issue:
{{$commentcount = $this->getExtension('Thread')->getCommentCount();}}
Posted by Pádraic Brady (padraic) on 2009-11-23T08:08:27.000+0000
Fixed in r19192.
Extremely silly oversight on my part - I've added a task to add test coverage for the method in Atomland which is apparently missing. May have missed it in a commit previously.
Posted by Pádraic Brady (padraic) on 2009-11-23T08:12:27.000+0000
Reopen to set fix version to next mini release
Posted by Bradley Holt (bradley.holt) on 2009-11-25T16:42:29.000+0000
Seems to be working fine now, thanks!