[RFC] [Discussion] SQLite3: remove warnings, move to exceptions

From: Date: Mon, 24 Oct 2022 02:56:45 +0000
Subject: [RFC] [Discussion] SQLite3: remove warnings, move to exceptions
Groups: php.internals 
Request: Send a blank email to internals+get-118873@lists.php.net to get a copy of this message
Kia ora, I am proposing that the SQLite3 extension stops using warnings for errors and instead throws exceptions by default: https://wiki.php.net/rfc/sqlite3_exceptions Whether we just deprecate warnings first and default to exceptions, and then remove warnings altogether in a later version, or just disable warnings directly, is probably the important part of the RFC. My personal point of view is that modern code probably already have enabled exceptions in the class, or is transforming warnings into exceptions using an error handler. If not, it's relatively easy to set a exception handler to dismiss the new exceptions if you don't want to see them. So going throught depreciation might not be necessary, but it's open for discussion. Feedback is welcome :) Thanks.

« previous php.internals (#118873) next »