Issues

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

Issue Type: Bug Created: 2009-08-21T10:54:00.000+0000 Last Updated: 2009-08-25T15:51:06.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Joe Chen (guishoudaoge) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db_Table

Related issues: - ZF-3349

Attachments:

Description

line 1009:

<pre class="highlight">
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

Comments

Posted by Satoru Yoshida (satoruyoshida) on 2009-08-21T18:59:12.000+0000

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

Posted by Ralph Schindler (ralph) on 2009-08-25T15:51:06.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts