Re: [PHP-DEV] [RFC] [Discussion] SQLite3: remove warnings, move to exceptions

2022-10-25 Thread BohwaZ
> As others have said, the correct, responsible way to do this would be > to make it gradual and keep warnings working until 9.0. I would > recommend: > > 1. 8.3, enableExceptions(false) raises E_DEPRECATED. > 2. 9.0 enableExceptions() defaults to true, and calling it with false > is an Error. (

Re: [PHP-DEV] [RFC] [Discussion] SQLite3: remove warnings, move toexceptions

2022-10-25 Thread Christoph M. Becker
On 25.10.2022 at 14:10, BohwaZ wrote: >> As others have said, the correct, responsible way to do this would be >> to make it gradual and keep warnings working until 9.0. I would >> recommend: >> >> 1. 8.3, enableExceptions(false) raises E_DEPRECATED. >> 2. 9.0 enableExceptions() defaults to true,

Re: [PHP-DEV] [RFC] [Discussion] SQLite3: remove warnings, move to exceptions

2022-10-25 Thread Larry Garfield
On Tue, Oct 25, 2022, at 7:10 AM, BohwaZ wrote: >> As others have said, the correct, responsible way to do this would be >> to make it gradual and keep warnings working until 9.0. I would >> recommend: >> >> 1. 8.3, enableExceptions(false) raises E_DEPRECATED. >> 2. 9.0 enableExceptions() default

Re: [PHP-DEV] [RFC] [Discussion] SQLite3: remove warnings, move to exceptions

2022-10-25 Thread Derick Rethans
On 25 October 2022 14:10:14 CEST, BohwaZ 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 cat