Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.9.6
-
Fix Version/s: 1.11.1
-
Component/s: Zend_Db_Table
-
Labels:None
Description
When using Zend_Db_Table for fetching data from certain row from DB table Zend Framework ncorrectly checks range of available/seekable positions in Zend_Db_Table_Rowset_Abstract::seek() on line 323 and throws exception "Illegal index is ...".
The solution is to change condition which triggers exception with fixing comparison from grather or equal to grather.
BEFORE:
if ($position < 0 || $position >= $this->_count) { ...
AFTER:
if ($position < 0 || $position > $this->_count) { ...
The issue still exists on 1.9.7, already checked!