Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112958 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26526 invoked from network); 21 Jan 2021 22:11:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jan 2021 22:11:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 93F7B1804C6 for ; Thu, 21 Jan 2021 13:51: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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from v-smtpout1.han.skanova.net (v-smtpout1.han.skanova.net [81.236.60.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 21 Jan 2021 13:51:25 -0800 (PST) Received: from [192.168.7.11] ([213.64.245.126]) by cmsmtp with ESMTPA id 2hrPl3Ith3UCO2hrPlXleQ; Thu, 21 Jan 2021 22:51:23 +0100 To: Kamil Tekiela References: Cc: PHP internals Message-ID: <0edafce4-c9a5-c483-65f1-72e49614135a@telia.com> Date: Thu, 21 Jan 2021 22:51:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfPgYv5xbUM9p3GtKKim1PW7lCKmDkVetfh9yA8HfpYsW+BMSKFFkCCd5X1SrCXUh0ZZ0VPww3Z/qfhhk1uWQ3MO1dq4guqBgQh5NM/ByKNLtSX+03gKk zBNdy1vOlmDtAaszf7ToukqTH0lL5Yb6Ts8ueP7cjA0UpHyw0iU7AlDqmgC0TZbBzZgR2KgKMXvz36l9GRpJ54XprAW3hGoRW7QUOdd04VoWd7bvIDxNq+fA Subject: Re: [PHP-DEV] [RFC]: Change Default mysqli Error Mode From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Den 2021-01-21 kl. 00:04, skrev Kamil Tekiela: > Hi Internals, > > Following my earlier announcement in https://wiki.php.net/rfc/improve_mysqli > I decided to submit a dedicated RFC for the first proposal. > > This RFC proposes to change the default mysqli error reporting mode to > exception mode. This change follows the same change in PDO. The RFC can be > found here https://wiki.php.net/rfc/mysqli_default_errmode > > Kind Regards, > Kamil Tekiela > If I understand this correctly, does it imply that a lot of legacy code that works today, will not work any longer and needs to change? Like: if ("mysqlierror") { "error handling" } If so I think that like in other RFC's an investigation should be done on how much code that is affected to assess BC impact. Btw, I liked your proposal on how to improve prepared statements in mysqli a lot! Regards //Björn Larsson