Issues

ZF-5783: Undefined offset in Zend_Gdata_GdataOnlineTest::testFeedImplementation

Description

When running Zend_Gdata_GdataOnlineTest, the following unit test failure occurs:

testFeedImplementation(Zend_Gdata_GdataOnlineTest)
Undefined offset:  3
.../library/Zend/Gdata/App/Feed.php:153
.../library/Zend/Gdata/App/Feed.php:153

This is caused because testFeedImplementation() isn't calling rewind() before calling current(), and the changes made for protocol v2 support added a foreach() statement (which calls rewind() at the start of execution, not after).

The fix is to call rewind() inside of testFeedImplementation().

Comments

Assigning to [~jhartmann], since he already has code to fix this. :)

Fixed in r14177 and merged to 1-7 in r14178.