Re: [RFC] Change default PDO error mode
| From: | Paul M. Jones | Date: | Sat, 28 Mar 2020 19:15:39 +0000 |
| Subject: | Re: [RFC] Change default PDO error mode | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109399@lists.php.net to get a copy of this message | ||
Hi there,
> On Mar 28, 2020, at 14:02, AllenJB <php.lists@allenjb.me.uk> wrote:
>
> I believe it also brings the behavior inline with what developers would actually expect the
> default to be in modern PHP.
As do I. Every PDO wrapper I've ever written, one of the first things it does is set exceptions
as the error mode.
--
Paul M. Jones
pmjones@pmjones.io
http://paul-m-jones.com
Modernizing Legacy Applications in PHP
https://leanpub.com/mlaphp
Solving the N+1 Problem in PHP
https://leanpub.com/sn1php