ZF-10242: Zend_Gdata_App_Feed does not implement Countable
Description
to be able to do
$contacts = $gdata->getFeed($contactsQuery);
$total = count($contacts);
Zend_Gdata_App_Feed needs to be implementing Countable interface. It already implements Iterator and ArrayAccess.
Now the only way is
$contacts = $gdata->getFeed($contactsQuery);
$total = $contacts->count();
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-07-28T21:12:51.000+0000
I consider a improvement and not a bug.
Posted by Alexander Steshenko (lcf) on 2010-07-28T21:30:59.000+0000
It is technically an improvement, but it leads to bugs (because of the wrong expectations) and I'm almost sure that it was supposed to be so, just somebody accidentally missed 'Countable'.
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-21T16:47:18.000+0000
Fixed with r22880.