Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112992 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70279 invoked from network); 25 Jan 2021 17:52:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jan 2021 17:52:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 52C011804A7 for ; Mon, 25 Jan 2021 09:33:26 -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.5 required=5.0 tests=BAYES_05,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 09:33:25 -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 E88B91517ABD; Mon, 25 Jan 2021 18:33:23 +0100 (CET) Message-ID: <4D7D042F-39A5-4BEF-93B6-542FD53928A1@cschneid.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_ECECDAFA-BE55-4884-9575-BB024FC19A2F" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Date: Mon, 25 Jan 2021 18:33:23 +0100 In-Reply-To: Cc: PHP internals To: "G. P. B." References: <0edafce4-c9a5-c483-65f1-72e49614135a@telia.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=_ECECDAFA-BE55-4884-9575-BB024FC19A2F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 25.01.2021 um 18:22 schrieb G. P. B. : > And yes I'm basically advocating for people to add = mysqli_report(MYSQLI_REPORT_ERROR) (or even = mysqli_report(MYSQLI_REPORT_OFF) if they fancy) to their setup, I'm even = advocating for them to do it right now such that they can catch anything = ahead of time. Defaults matter. Most people will *not* do this step and their code will = fail on upgrade. > Moreover, this proposal does not prevent you from using the warning = mode instead of jumping to exceptions directly, the key point is that = you need to specify it, and I personally believe that having the warning = mode as the default mode is the worst choice for the reasons I mentioned = previously. Agree to disagree. If I have the choice to make the smoothen the transition centrally with = PHP defaults or rely on each user to do it manually by proactively = setting warning modes I prefer the defaults way. Remember: I am not advocating staying in the warning mode, I'm just = seeing it as a useful intermediate step for legacy stuff we want to fix. - Chris --Apple-Mail=_ECECDAFA-BE55-4884-9575-BB024FC19A2F--