php-mysql-mysqli-wrapper icon indicating copy to clipboard operation
php-mysql-mysqli-wrapper copied to clipboard

Disable exceptions at PHP 8.1

Open killerbees19 opened this issue 2 years ago • 0 comments

Quote from the manual:

As of PHP 8.1.0, the default setting is MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT. Previously, it was MYSQLI_REPORT_OFF.

Without this commit every failed query will throw a mysqli_sql_exception and this will break legacy code which is expecting false as return value from certain functions.

With this change it's still possible to override the reporting mode after including this wrapper. 🤓

killerbees19 avatar Jul 16 '22 01:07 killerbees19