Re: [VOTE]: Change Default mysqli Error Mode
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)