ZF-12389: isLast not working as expected in Zend_Service_Amazon_SimpleDb_Page

Description

The isLast method on Zend_Service_Amazon_SimpleDb_Page-objects checks wether the NextToken is null or not, when determining wether or not it is the last page for the query.

However, the Zend_Service_Amazon_SimpleDb sets the NextToken to an empty string, if there is no NextToken, so the isLast method doesn't work as intended.

As I see it could be fixed either in Zend_Service_Amazon_SimpleDb or Zend_Service_Amazon_SimpleDb_Page. I don't know which would be better for the framework.

Comments

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf1/issues/1