Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112995 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15014 invoked from network); 26 Jan 2021 08:01:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Jan 2021 08:01:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 515831804E4 for ; Mon, 25 Jan 2021 23:42:35 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,HTML_MESSAGE, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from darkcity.gna.ch (darkcity.gna.ch [195.49.47.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 25 Jan 2021 23:42:34 -0800 (PST) Received: from wafer.home (unknown [IPv6:2a02:1205:5053:a220:e1ca:d444:5aef:5dec]) (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 EE3191517ABD; Tue, 26 Jan 2021 08:42:31 +0100 (CET) Message-ID: <73C12DD2-D99E-44BA-B557-6043F3DDD4C7@cschneid.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_FFB5066D-ECCF-41A4-8503-6544A93051D3" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Date: Tue, 26 Jan 2021 08:42:31 +0100 In-Reply-To: Cc: PHP internals To: =?utf-8?Q?Alexandru_P=C4=83tr=C4=83nescu?= References: <0edafce4-c9a5-c483-65f1-72e49614135a@telia.com> <4D7D042F-39A5-4BEF-93B6-542FD53928A1@cschneid.com> X-Mailer: Apple Mail (2.3654.40.0.2.32) Subject: Re: [PHP-DEV] [RFC]: Change Default mysqli Error Mode From: cschneid@cschneid.com (Christian Schneider) --Apple-Mail=_FFB5066D-ECCF-41A4-8503-6544A93051D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Am 26.01.2021 um 07:57 schrieb Alexandru P=C4=83tr=C4=83nescu = : > There will be other parts that will require testing, whatever you do. = Trying to optimize this to reduce the 1 line quick fix that could be = easily read in the documentation at = https://www.php.net/manual/en/migration81.php = sounds to me like we're = trying too hard to reduce this cost, ignoring others. The migration guides are already getting quite long, just have a look at = https://www.php.net/manual/de/migration80.incompatible.php = "Just one more line" can add up and that's why I want to be able to = proactively fix my code, not fixing it at the time of migration. If the error mode would be changed to warnings instead of exceptions = first then every developer interested in best practices could and would = already adapt their code. But they could do it gradually without the = disruption of hard fails looming over them. I just think giving developers a warning period (per default, not = opt-in) is the right thing to do for BC breaks. [ Did I mention round()? = ;-) ] I start to sound like a broken record, I'll leave it at that, - Chris --Apple-Mail=_FFB5066D-ECCF-41A4-8503-6544A93051D3--