From 5e1056edb614fbec5ffbc6b49e5cd714542a455d Mon Sep 17 00:00:00 2001 From: Dharman Date: Wed, 20 Jan 2021 22:50:55 +0000 Subject: Change the default error mode of mysqli Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli error reporting default. Explicitly call mysqli_report(MYSQLI_REPORT_OFF) to preserve previous behavior. RFC: https://wiki.php.net/rfc/mysqli_default_errmode Closes GH-6629. --- UPGRADING | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index db0e1d4843..2bf657e740 100644 --- a/UPGRADING +++ b/UPGRADING @@ -75,6 +75,11 @@ PHP 8.1 UPGRADE NOTES internally previously. . The MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH option no longer has an effect. . The MYSQLI_STORE_RESULT_COPY_DATA option no longer has an effect. + . The default error handling mode has been changed from "silent" to + "exceptions". See https://www.php.net/manual/en/mysqli-driver.report-mode.php + for details of behavior changes and how to explicitly set this attribute. To + keep the old behavior, use mysqli_report(MYSQLI_REPORT_OFF); + RFC: https://wiki.php.net/rfc/mysqli_default_errmode - MySQLnd: . The mysqlnd.fetch_copy_data ini setting has been removed. However, this -- cgit v1.2.1