ZF-8808: Zend_Service_Amazon_ResultSet::Seek Problem


I was trying to test the Zend_Service_Amazon_ResultSet but for some reason the seek method of the class doesn't work for me. I get an error as follow

Fatal error: Uncaught exception 'OutOfBoundsException' with message 'Illegal index '10'' in C:\wamp\www\amazon\Zend\Service\Amazon\ResultSet.p hp:157 Stack trace: #0

require_once "Zend/Service/Amazon.php"; $amazon = new Zend_Service_Amazon('id', 'US', 'secret'); $item1 = $amazon->itemSearch(array('SearchIndex' => 'Books', 'Keywords' => 'Chemistry', 'sort'=>'titlerank', 'ResponseGroup'=>'Small,Images'));

$book1 = $item2->seek(10); echo $book1->Title;


No comments to display