mindplay-dk / sql

Database framework and query builder
Other
18 stars 6 forks source link

PHP 8 support - error handling mode has been changed from "silent" to "exceptions" #51

Closed boan-jfm closed 5 months ago

boan-jfm commented 2 years ago

In PHP 8, the error handling mode has been changed from "silent" to "exceptions" - this is an issue in the condition which is built to handle return values instead of exceptions: https://github.com/mindplay-dk/sql/blob/0.7.6/src/framework/pdo/PreparedPDOStatement.php#L107

The default error handling mode has been changed from "silent" to "exceptions". See Errors and error handling for details.

https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.pdo

It may support both configurations?