Zend Framework

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

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.2
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Db_Table
  • Labels:
    None

Description

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

Issue Links

Activity

Hide
Satoru Yoshida added a comment -

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

Show
Satoru Yoshida added a comment - In my search, there is line 1243 in Zend/Db/Table/Abstract.php (SVN trunk r17687)
Hide
Ralph Schindler added a comment -

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

Show
Ralph Schindler added a comment - Fixed in trunk in r17815 and in release branch 1.9 in r17816 as part of ZF-3349

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: