Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113331 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65383 invoked from network); 28 Feb 2021 17:36:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Feb 2021 17:36:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3F96B1804D0 for ; Sun, 28 Feb 2021 09:26:41 -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,HTML_MESSAGE,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-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 ; Sun, 28 Feb 2021 09:26:40 -0800 (PST) Received: by mail-wm1-f51.google.com with SMTP id n4so10829158wmq.3 for ; Sun, 28 Feb 2021 09:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6iholLSvhrs/RfpWzKQB+fjrp6ovqj8zQ2E2IUdCuwc=; b=gP97N/7nyigultJ2Ffobne6RmXK67+zbU+BdA7V5lIaaBnlzCmzVgGsqAzYa+QqbhA ZEHVNypm4P6TByphMA76Qn/AojP4OpnJvS5x9kPwOO1ipGWP6GNgGJlGWr1rZF9zjH0R S9DBr3tE1teTdLfHBhoHMqDOC6bvSLbd/4Psw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6iholLSvhrs/RfpWzKQB+fjrp6ovqj8zQ2E2IUdCuwc=; b=FJN9rKSy54OgQNVo3BhxmqoKc1pfxeA5UUCRn3dvQSN96ZjGYRuNNec43kkzPLP25d lU/3pBMELpoL1IB94JmZoqZawYhEpF3IxkBTcQguDL4ULXzDG6QHljdBQY4uH5/8KGmd DBTlZkwJVpVKrt0fFuOZkf7aFQzQiMRPYiH4l25XNmXlKgOPd0tfvxhM0xe8uOdqTCkh /mh5ZaTisMZ7437jMJbucgJF7yMwY3qFKzLpJOwMmwbwlywJVqGJT5b4/XOTelzdgVFf +RdAtH5WRa6Vv64IMiSASulIZpmCCNx/abe4ZXLI+C2Jg4KdD431dF8DFkdEli7whr9z WEIw== X-Gm-Message-State: AOAM532aJahIoWxjv4CzkjdGu+MOeVDePEmLGle4Rpg37cD8bc4e1Sc6 ETOwXuNzuCzlwo/xuRbjYp20KTftB8sC4kZsv9s15g== X-Google-Smtp-Source: ABdhPJy3LMWhVc+E1Dts6ZgdyyZL4vBUtTgDS3QvCEnm5UynNkn70eTfrmgSEQDKCDkqBh1UAXwrPi0YesULQ83vuQg= X-Received: by 2002:a7b:c44a:: with SMTP id l10mr11624400wmi.179.1614533199300; Sun, 28 Feb 2021 09:26:39 -0800 (PST) MIME-Version: 1.0 References: <70af2150f71a0b32dbc0f74d715d608115ed279c.camel@schlueters.de> In-Reply-To: Date: Sun, 28 Feb 2021 17:26:27 +0000 Message-ID: To: Kamil Tekiela Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d29d1205bc68cde3" Subject: Re: [PHP-DEV] [VOTE]: Change Default mysqli Error Mode From: craig@craigfrancis.co.uk (Craig Francis) --000000000000d29d1205bc68cde3 Content-Type: text/plain; charset="UTF-8" On Sun, 28 Feb 2021 at 17:06, Kamil Tekiela wrote: > if someone has a proposal on how to introduce a deprecation phase > If the extra step is necessary... I liked Nikita's suggestion to "issue a deprecation warning when creating a connection without mysqli_report() having been explicitly called beforehand". This will hopefully prompt old systems, who want to keep the old behaviour, to proactively add mysqli_report(MYSQLI_REPORT_OFF). Keeping in mind that anyone using exceptions today is already using this function; and when the default has changed, we can drop this check, so mysqli_report() is no longer required by those using exceptions. Chris, while I liked your thinking, and appreciate your caution about the change, I'm not sure `MYSQLI_REPORT_ERROR` would clearly show exceptions will be the new default. Craig --000000000000d29d1205bc68cde3--