ZF-7653: get unexpected result from find() function if passed an array within dis-ordered key


line 1009:

for ($i = 0; $i < count($keyValues); ++$i) {
        if (!isset($whereList[$i])) {
            $whereList[$i] = array();
        $whereList[$i][$keyPosition] = $keyValues[$i];

why use $i as the key to fetch value of $keyValues?

I think good solution is to re-order the array in the find() function


In my search, there is line 1243 in Zend/Db/Table/Abstract.php (SVN trunk r17687)

Fixed in trunk in r17815 and in release branch 1.9 in r17816 as part of ZF-3349