ZF-8589: PDOException::getcode() returns string but Exception expects int


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


Resolved in trunk.