ZF-8195: Call to undefined function getCommentCount()

Issue Type: Bug Created: 2009-10-31T16:12:56.000+0000 Last Updated: 2009-11-25T16:42:34.000+0000 Status: Closed Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Bradley Holt (bradley.holt) Assignee: Pádraic Brady (padraic) Tags: - Zend_Feed_Reader

Related issues: Attachments: - Atom.patch


When importing the following feed:

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


Posted by Thierry Jossermoz ( on 2009-11-05T18:39:55.000+0000


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!

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.