ZF-9213: Zend_Db_Table_Rowset returns empty Zend_Db_Table_Row when acess negative index
Description
When acess negative index in rowset it should return null, because offset is inválid,but returns a row without data. if access any position of a empty row it throws an exception.
Ex:
$table = new My_Table();//any table implementation $rowset = $table->fetchAll();//return rowset $row = $rowset[-1];//shold return null, but returns a Row without data
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-02-19T07:03:34.000+0000
Current Code in Zend_Db_Table_Rowset_Abstract
Should be
Posted by Ramon Henrique Ornelas (ramon) on 2010-07-16T12:53:31.000+0000
Fixed with the r22582.