[RFC] Change default PDO error mode
| From: | AllenJB | Date: | Sat, 28 Mar 2020 19:02:22 +0000 |
| Subject: | [RFC] Change default PDO error mode | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-109398@lists.php.net to get a copy of this message | ||
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