ZF-6748: If index of row equals count of rows in seek(), exception is needed.

Description

When you use index of Row equals count of rows in set, I didn't recieve exception. Need change condition in method seek of Zend_Db_Table_Rowset_Abstract class (Zend/Db/Table/Rowset/Abstract.php). ... (Line 325) if ($position < 0 || $position >= $this->_count) { .....

Comments

Solved in SVN r15817

This patch has broken getRow after an iteration through the rowset.


$table = new Zend_Db_Table($config);
$rowset = $table->fetchAll($table->select()->limit(3));
foreach($rowset as $row) {}
$rowset->getRow(0); // exception, because $rowset->_pointer is now 3