Re: [VOTE]: Change Default mysqli Error Mode
| From: | Christian Schneider | Date: | Fri, 12 Feb 2021 15:17:59 +0000 |
| Subject: | Re: [VOTE]: Change Default mysqli Error Mode | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-113154@lists.php.net to get a copy of this message | ||
Am 12.02.2021 um 15:30 schrieb Craig Francis <craig@craigfrancis.co.uk>:
> Switching the default from
OFF to
> ERROR to ERROR | STRICT isn't
> an obvious step, as that still means you're still having a single step to change from error
> reporting to exceptions.
It is the usual step for (almost) all BC breaking changes in PHP: Warn first (leaving time to find
and adapt code), explode later.
The question is not *if* the change has to be made (or how big it is) but *when* (and how to find
places to be changed).
Point in case: We just made the transition to PHP 8 and stuff like round(null) and abs(null) going
directly from silence to Exception resulted in e.g. data importers suddenly stopping to work. Yes,
each individual fix was easy but if there would have been a period where this is a warning we could
have fixed those places without time pressure or a time window where users saw missing data.
- Chris