ZF-8589: PDOException::getcode() returns string but Exception expects int
Description
In Zend_Db_Statement_Pdo line 234 the PDOException is catched and re-returned as Zend_Db_Statement_Exception.
In the process of this getCode() from PDOException is passed into the new exception. However its expecting an int, not a string, and fatal's on this issue.
Reproduce case:
$db->query("SELECT * FROM foo WHERE bar = ?");
This is on PHP 5.3.1
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2009-12-21T06:54:13.000+0000
Resolved in trunk.