Zend_Db_Adapter_Mysqli and PHP 5.3
If you’re using PHP 5.3 and Zend_Db with MySQL, you might see
Fatal error: Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli statement execute error : No data supplied for parameters in prepared statement' in [...]/trunk/library/Zend/Db/Statement/Mysqli.php:215 Stack trace: #0 [...]/trunk/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Mysqli->_execute(Array) #1 [...]/trunk/library/Zend/Db/Adapter/Abstract.php(435): Zend_Db_Statement->execute(Array) #2 [...]/trunk/library/Zend/Db/Adapter/Abstract.php(513): Zend_Db_Adapter_Abstract->query('INSERT INTO `us...',Array) #3
Turns out this is a known bug (ZF-2529) with a proposed patch that hasn’t made it into a release yet. How annoying for earlier adopters who want to take advantage of PHP namespaces (which is really helpful for making generic code..)