Zend Framework

Zend_Gdata_App_Feed does not implement Countable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.7
  • Fix Version/s: 1.11.0
  • Component/s: Zend_Gdata
  • Labels:
    None

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();

Activity

Hide
Ramon Henrique Ornelas added a comment -

I consider a improvement and not a bug.

Show
Ramon Henrique Ornelas added a comment - I consider a improvement and not a bug.
Hide
Alexander Steshenko added a comment -

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'.

Show
Alexander Steshenko added a comment - 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'.
Hide
Ramon Henrique Ornelas added a comment -

Fixed with r22880.

Show
Ramon Henrique Ornelas added a comment - Fixed with r22880.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: