Re: [RFC] Reclassifying engine warnings
| From: | Claude Pache | Date: | Thu, 29 Aug 2019 12:43:40 +0000 |
| Subject: | Re: [RFC] Reclassifying engine warnings | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106795@lists.php.net to get a copy of this message | ||
> Le 29 août 2019 à 13:33, Aegir Leet via internals <internals@lists.php.net> a écrit :
>
> I'm sorry, but if you seriously believe doing something that generates a
> notice (or warning, or error, ...) is not a bug - you're delusional.
No, what you think is not at all how notices were designed. From the manual
(https://www.php.net/errorfunc.constants <https://www.php.net/errorfunc.constants>):
E_NOTICE — Run-time notices. Indicate that the script encountered something that could indicate
an error, but could also happen in the normal course of running a script.
One can discuss whether unitialised variables should trigger a notice or a warning. But let us
respect the semantics of the language features.
—Claude