Re: [RFC] Change default PDO error mode
| From: | Matteo Beccati | Date: | Wed, 01 Apr 2020 07:18:40 +0000 |
| Subject: | Re: [RFC] Change default PDO error mode | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109492@lists.php.net to get a copy of this message | ||
Hi Allen,
+1 from me. If you need some help with the implementation, pls let me know.
Cheers
On 28/03/2020 20:02, AllenJB wrote:
> Hi,
>
> I present for discussion an RFC to change the default PDO error mode:
>
> https://wiki.php.net/rfc/pdo_default_errmode
>
> Previous discussion: https://externals.io/message/109015
>
> I believe this change will help new developers who are presently
> presented only with knock-on errors, which can be confusing, when using
> PDO unless they implement "boilerplate" error handling every time a
> query is made.
>
> I believe it also brings the behavior inline with what developers would
> actually expect the default to be in modern PHP.
>
> Regards,
>
> AllenJB
>
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/