Snow Leopard, Zend Framework and MySQLi Problem

I spent a good hour banging my head against the desk this evening trying to work out why Zend Framework row objects have stopped working after upgrading to Snow Leopard and installing the new iPhone SDK.

I traced all the way though to the Zend_Db_Statement_Mysqli class which giving the following error:

Warning: Parameter 2 to mysqli_stmt::bind_param() expected to be a reference, value given in Zend/Db/Statement/Mysqli.php on line 205

I was half way installing the macports PHP package when I thought I should probably try a different adapter which worked! So if you’re having difficulties, try the PDO_MYSQL driver instead.