Re: [RFC]: Change Default mysqli Error Mode

From: Date: Thu, 21 Jan 2021 21:51:24 +0000
Subject: Re: [RFC]: Change Default mysqli Error Mode
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-112958@lists.php.net to get a copy of this message
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

Thread (39 messages)

« previous php.internals (#112958) next »