You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db2_execute() can trigger different kinds of errors internally:
A notice:
$stmt = $conn->executeQuery('SELECT * FROM users WHERE user_name = ?', [[]]);
Expected result:
Notice: Array to string conversion in lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php on line 175
Actual result: nothing. The error is suppressed.
A catchable fatal error:
$stmt = $conn->executeQuery('SELECT * FROM users WHERE user_name = ?', [new stdClass()]);
Expected result:
Catchable fatal error: Object of class stdClass could not be converted to string in lib/Doctrine/DBAL/Driver/IBMDB2/DB2Statement.php on line 175
Actual result: nothing. The script silently exists.
Neither of the errors above seems to be needed/possible to handle on the DBAL level. The first one doesn't make db2_execute() return FALSE, the other cannot be caught using a try/catch block.
The text was updated successfully, but these errors were encountered:
db2_execute()
can trigger different kinds of errors internally:Neither of the errors above seems to be needed/possible to handle on the DBAL level. The first one doesn't make
db2_execute()
returnFALSE
, the other cannot be caught using atry
/catch
block.The text was updated successfully, but these errors were encountered: