MDL-75760 database: Keep mysql driver working over all PHP versions
commit83eb19338e4d52bf30b1f5c00c2e0db859d85497
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 16 Sep 2022 08:24:21 +0000 (16 10:24 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 21 Oct 2022 14:33:22 +0000 (21 16:33 +0200)
treed030c8336c35e161a6e4e690d39f252ad94a60cb
parent046e48c49c8896c77c707343a9060a195a19f5e9
MDL-75760 database: Keep mysql driver working over all PHP versions

Before PHP 8.1, the mysqli extension had MYSQLI_REPORT_OFF as default setting.
With PHP 8.1, it has been changed to MYSQLI_REPORT_ERROR|MYSQLI_REPORT_STRICT
The native driver is not ready to work with this new reporting level,
see MDL-75761 about to considering to improve it.

So this change just ensures that we continue using MYSQLI_REPORT_OFF
with any PHP version.
lib/dml/mysqli_native_moodle_database.php