Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118884 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59698 invoked from network); 25 Oct 2022 12:44:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Oct 2022 12:44:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1EC0C1804A9 for ; Tue, 25 Oct 2022 05:44:38 -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=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 ; Tue, 25 Oct 2022 05:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666701875; bh=fwiXe623ta23pDfjp9ma7R8n9qgQQchzFjwtMsAnEp8=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=kYYl7TopuM0u62nsPu3dycSTLoTr2bj5nqsDq5o64kll1Bi1EyQDxDErDM+gnU/rV rija/xfyIYSLo+xB7yY9AhMUuSrvS6gYGe0miOY8OvHgsl9vQ+Ly9eqhf6RxpjxZDx nH0tX0TzFHQRDvDurUnluyI6eFn95b6EjPYpiM0M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([79.220.74.72]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MtwZ4-1p5ncV1zzQ-00uMGC; Tue, 25 Oct 2022 14:44:35 +0200 Message-ID: <8d053d5d-b878-21c2-4400-542dcd483a64@gmx.de> Date: Tue, 25 Oct 2022 14:44:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 To: BohwaZ , internals@lists.php.net References: <20221024045645.00bfc0d2@platypus> <20221025141014.342851f4@platypus> In-Reply-To: <20221025141014.342851f4@platypus> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:KaNLh14a47I+C7JkJOSpNWH6l2/nPwZcrPT8AGEpqJ6uONnrzd2 f6SMQVKWXbvu0TPh2S831GeWsCeinLZocOF1ux5OXQWORLkzT7ZtfPLAWdk255EyyMji73o 4dCANK8cxsBTvDLblPhR7NwmE1guiWMfiHscj6Iti8VJLkJkDUzwmvxR0RLkSUkKZt8vbds jjclZK4VGpA0l4/anfTMQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:wYOOHn0tL6E=:mW0XexMOoNEwr48G3gpzFs 60zk3VRcXKKuW/ZTZQTlXIE+nf6mRyH2r8BP7vtoYrguhMUdXRB+EVlkobA/5ZJuTnymJdOry dCQzgCDfoDL0x5urFQvQK1y754N0b7SR7lh2a13kYIPdmbnhY2/gQwD0NBQ4ttO78ge4ZIC8e 1Jk7uAa458iGckGPz2leyryaZgEWpiVx0igC1qFgDEQTm2ObkdfdX5XyiHZGDZPy5rq6JR9YO h9S1Sb1vab2uX++hQ7aj75/iEktrBNNeYazuQ6/aGmtLlG/Roew0RPsYYT81aaAsvMzAjPT4g m1VR0u+hEflM9fqxAWLVp557yeWbfVCA2n3ngacd29q7A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dEl0RxEWgre1EmOsmtqw2M3ynSfoNYC9dC3OfBtx76tCQmF elpiTh2Hi5pZAXa6PxEoPSmGcPduYEu6MmcQUdxs8Qp6vUErIN10V9uwDYL2DNcDygDo0VLvc MZxKFhmG2/jpV2zJXFVGBYSTWt14mq49V89W/1eAQgfVh Subject: Re: [PHP-DEV] [RFC] [Discussion] SQLite3: remove warnings, move toexceptions From: cmbecker69@gmx.de ("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, and calling it with false >> is an Error. (Calling it with true still works, but is a no-op.) 3. >> 10.0 Remove enableExceptions() entirely. >> >> The behavior then only changes on major versions. > > Thank you, I updated the RFC in that direction. The sad part is that it > will take a very long time before PHP 10.0 is released :( Cf. , where we changed the behavior in a minor release. Not quite the same as in this case, but might still be a precendence. >> I think we already did this for PDO, didn't we? It makes sense to do >> it for SQLite, too. > > Slightly different: > https://wiki.php.net/rfc/pdo_default_errmode > > PDO made the change to throwing exceptions without going through a > deprecation. > > Maybe what I would prefer for SQLite3 is a middle-ground: > * we keep ''enableExceptions(false)'' with no plan to remove it -> > thinking about it, it doesn't really matter if you prefer warnings, > and it would be easy to keep it that way No, please get rid of the choice for users whether there is an exception or a warning. As it is now, it is *very* hard to document the behavior; what to put in the errors/exceptions section, for instance. Several other extensions have the same issue, and we should try to fade that out. > * but we make SQLite3 throw exceptions by default directly in PHP 8.3, > like it was done with PDO 2 years ago. > > That way you can keep the same behaviour as before just by adding > enableExceptions(false) to your code, and it will not break. > > That seems like a better compromise no? =2D- Christoph M. Becker