Re: [RFC] [Discussion] SQLite3: remove warnings, move to exceptions
| From: | Christoph M. Becker | Date: | Wed, 26 Oct 2022 18:42:42 +0000 |
| Subject: | Re: [RFC] [Discussion] SQLite3: remove warnings, move to exceptions | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118887@lists.php.net to get a copy of this message | ||
On 26.10.2022 at 08:57, Derick Rethans wrote:
> On 25 October 2022 14:10:14 CEST, BohwaZ <php@bohwaz.net> wrote:
>
>> * but we make SQLite3 throw exceptions by default directly in PHP 8.3,
>> like it was done with PDO 2 years ago.
>
> I am not in favour, as it would mean that existing code suddenly may start breaking, as
> exceptions aren't expected (and hence not catered for). We can't do that in an 8.x
> release.
I'm not in favor of this either, but we did it for PDO (okay, PHP 8.0)
and mysqli (PHP 8.1), and it can be counteracted with a single
statement. So yes, it would constitute a BC break, but that could be
solved easily (if all else fails, you could auto_prepend_file).
--
Christoph M. Becker