ZF-5783: Undefined offset in Zend_Gdata_GdataOnlineTest::testFeedImplementation

Issue Type: Unit Tests: Problem Created: 2009-02-13T16:49:40.000+0000 Last Updated: 2009-02-26T16:09:11.000+0000 Status: Resolved Fix version(s): - 1.7.6 (02/Mar/09)

Reporter: Trevor Johns (tjohns) Assignee: Jochen Hartmann (jhartmann) Tags: - Zend_Gdata

Related issues: Attachments:


When running Zend_Gdata_GdataOnlineTest, the following unit test failure occurs:

<pre class="literal">testFeedImplementation(Zend_Gdata_GdataOnlineTest)
Undefined offset:  3

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


Posted by Trevor Johns (tjohns) on 2009-02-26T16:05:00.000+0000

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

Posted by Jochen Hartmann (jhartmann) on 2009-02-26T16:09:11.000+0000

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

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.