Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118876 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67001 invoked from network); 24 Oct 2022 08:42:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Oct 2022 08:42:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0EAEB1804C4 for ; Mon, 24 Oct 2022 01:42:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15623 212.45.192.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 24 Oct 2022 01:42:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 93E993A1D98 for ; Mon, 24 Oct 2022 10:42:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at example.com Received: from mail.gna.ch ([127.0.0.1]) by localhost (darkcity.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GMbK91imo72B for ; Mon, 24 Oct 2022 10:42:44 +0200 (CEST) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2ea4:cf00:6140:39d2:3633:1d09]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id B043A3A1D7A for ; Mon, 24 Oct 2022 10:42:44 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Date: Mon, 24 Oct 2022 10:42:44 +0200 References: <20221024045645.00bfc0d2@platypus> To: PHP Internals In-Reply-To: <20221024045645.00bfc0d2@platypus> Message-ID: <870F98D7-A5D2-48EB-B992-5B4EDDD1B1DA@cschneid.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) Subject: Re: [PHP-DEV] [RFC] [Discussion] SQLite3: remove warnings, move to exceptions From: cschneid@cschneid.com (Christian Schneider) Am 24.10.2022 um 04:56 schrieb BohwaZ : > I am proposing that the SQLite3 extension stops using warnings for > errors and instead throws exceptions by default: >=20 > https://wiki.php.net/rfc/sqlite3_exceptions >=20 > 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. >=20 > 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. >=20 > If not, it's relatively easy to set a exception handler to dismiss the > new exceptions if you don't want to see them. >=20 > So going throught depreciation might not be necessary, but it's open > for discussion. To no surprise for anyone reading this list I'm going to strongly = advocate for going through a deprecation phase to ease migration of = code. As often the code changes needed might not be big but you still have to = a) notice all the necessary changes (the SQLite exceptions might just be = one of many changes in the new PHP version) and b) adapting the code = should be decoupled from the PHP upgrade. Both of these goals are IMHO = well handled by a deprecation phase. Regards, - Chris