Re: [VOTE]: Change Default mysqli Error Mode

From: Date: Sun, 28 Feb 2021 17:26:27 +0000
Subject: Re: [VOTE]: Change Default mysqli Error Mode
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-113331@lists.php.net to get a copy of this message
On Sun, 28 Feb 2021 at 17:06, Kamil Tekiela <tekiela246@gmail.com> wrote:

> if someone has a proposal on how to introduce a deprecation phase
>


If the extra step is necessary... I liked Nikita's suggestion to "issue a
deprecation warning when creating a connection without mysqli_report()
having been explicitly called beforehand".

This will hopefully prompt old systems, who want to keep the old behaviour,
to proactively add mysqli_report(MYSQLI_REPORT_OFF).

Keeping in mind that anyone using exceptions today is already using this
function; and when the default has changed, we can drop this check,
so mysqli_report() is no longer required by those using exceptions.

Chris, while I liked your thinking, and appreciate your caution about the
change, I'm not sure MYSQLI_REPORT_ERROR would clearly show exceptions
will be the new default.

Craig


Thread (10 messages)

« previous php.internals (#113331) next »