Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.10.7
-
Component/s: Zend_Db_Table
-
Labels:None
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
Issue Links
| This issue depends on: | ||||
| ZF-10173 | Zend_Db_Table_Rowset_Abstract accepts indexes invalid. |
|
|
|
Current Code in Zend_Db_Table_Rowset_Abstract
Should be