Re: [RFC]: Change Default mysqli Error Mode

From: Date: Mon, 25 Jan 2021 10:03:35 +0000
Subject: Re: [RFC]: Change Default mysqli Error Mode
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-112980@lists.php.net to get a copy of this message
On Thu, Jan 21, 2021 at 12:05 AM Kamil Tekiela <tekiela246@gmail.com> wrote:

> Hi Internals,
>
> Following my earlier announcement in
> https://wiki.php.net/rfc/improve_mysqli
> I decided to submit a dedicated RFC for the first proposal.
>
> This RFC proposes to change the default mysqli error reporting mode to
> exception mode. This change follows the same change in PDO. The RFC can be
> found here https://wiki.php.net/rfc/mysqli_default_errmode
>
> Kind Regards,
> Kamil Tekiela
>

Fully support this proposal. Throwing exceptions is the right default, it
matches what PDO does, and restoring the old behavior is one line of code.

Regards,
Nikita


Thread (39 messages)

« previous php.internals (#112980) next »