Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113153 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81928 invoked from network); 12 Feb 2021 14:45:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Feb 2021 14:45:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 305721804D3 for ; Fri, 12 Feb 2021 06:30:57 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 ; Fri, 12 Feb 2021 06:30:56 -0800 (PST) Received: by mail-wm1-f41.google.com with SMTP id o24so1184250wmh.5 for ; Fri, 12 Feb 2021 06:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wQQUMMIFDNCJe6AC0S4jRwXU1okmYV1/rCm+LZOC6Jo=; b=GcRnbpDCh0a0xgWh8WeDIHKUOM9e/eirKuqHbJwyMkIWLCP2uWvk23Xn+b7fzZweRc bqdi/ER+uqaOKK876HHC0LDtpolv/EGsolG1SxmfjQhL8uj95SGYnp+AmuNFgRoSq1ak 91HdHgA62GSQY6aGURkSh7DCq9hEtaeeF7H3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wQQUMMIFDNCJe6AC0S4jRwXU1okmYV1/rCm+LZOC6Jo=; b=LKzpDlZZKgppLtXoFSv6GwbDmmlLNHr8hMZCMIpWmG/ZrzaSbip2LjUndNnxpihd8Z 24vQYr2vhlT5qMx782HWjMglXfOXWTTqp/VoAeIfYKJw/keZrD74B/LCK+4nzo7fXOEY JZ+xA57WHFcX5g8/IVZVwDmhpZ7zJoJRZeMJ7HUX4VenN7RMKHwYmQFckYn80FOHWHGN PoXg/5v71VvSS46pe/KRRepRfqz8K5d7gOgv+U66fdv7ve+bLhXo7ZmA06EjoR4zkDmS CPKeILFIDWxJ70ow2CFcFUr7fAJ8E7WVh7p73zK+L4sI0N3m8zcBYQNrB848j5SBHDDs 7WVg== X-Gm-Message-State: AOAM530SuvKv5dKPjy61l1IR9sVM+HeHCgc2X0cdeFszq4PDJfu17P5/ 0OUT3nmFzVjTYzS4UGX3XIR+7A== X-Google-Smtp-Source: ABdhPJyUKhqshEPG5COxj+rILEEuPK3DN9n//XhgfZDh49a5NnSM1o0/0p7oOQgcNgpvL/GZ2Umdeg== X-Received: by 2002:a1c:f212:: with SMTP id s18mr2953247wmc.107.1613140253477; Fri, 12 Feb 2021 06:30:53 -0800 (PST) Received: from [192.168.1.10] ([92.237.247.170]) by smtp.gmail.com with ESMTPSA id f14sm14295508wmj.30.2021.02.12.06.30.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2021 06:30:53 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) In-Reply-To: Date: Fri, 12 Feb 2021 14:30:52 +0000 Cc: Christian Schneider , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <5D0AC588-7BBC-419D-BFEA-06E2E112D3F8@cschneid.com> To: Peter Bowyer X-Mailer: Apple Mail (2.3654.60.0.2.21) Subject: Re: [PHP-DEV] [VOTE]: Change Default mysqli Error Mode From: craig@craigfrancis.co.uk (Craig Francis) On 12 Feb 2021, at 08:45, Peter Bowyer = wrote: > On Thu, 11 Feb 2021 at 13:31, Christian Schneider = wrote: >=20 >> [...] If there would have been an intermediate PHP version with = default >> MYSQLI_REPORT_ERROR I would have voted "Yes", but in the current form = I >> have to say "No". >>=20 >=20 > I voted "No" for the same reasons. If you want an intermediate PHP version, can it be done via Nikita's = solution. As in, for 8.1, issue a deprecation warning if mysqli_report() hasn't = been called before opening a connection, then change the default to = exceptions in 8.2. This would get everyone (who upgrades to every 0.x) to notice that they = haven't specified how they want reporting to work, and effectively gives = them a year to notice and specify that choice. Switching the default from `OFF` to `ERROR` to `ERROR | STRICT` isn't an = obvious step, as that still means you're still having a single step to = change from error reporting to exceptions. Thanks, Craig=