Details
Description
Zend_Db Performance sample code mistake: utilize a combination of vsprintf() and array_walk() to inject the values into the SQL
http://framework.zend.com/manual/en/performance.database.html
by the document, it show us the sample code like below :
// $adapter is the DB adapter. In Zend_Db_Table, retrieve
// it using $this->getAdapter().
$sql = vsprintf(
self::SELECT_FOO,
array_walk($values, array($adapter, 'quoteInto'))
);
but by the php manual, we know array_walk only return true or false .
http://us.php.net/array_walk
http://us.php.net/vsprintf
so the vsprintf method did not return the right formatted sql as expected.
Fixed with r23643 (replace array_walk by array_map)