RE: [PHP-DEV] Proposal: Raise severity of undefined constants
| From: | Ferenc Kovacs | Date: | Wed, 28 Jan 2015 07:20:50 +0000 |
| Subject: | RE: [PHP-DEV] Proposal: Raise severity of undefined constants | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81288@lists.php.net to get a copy of this message | ||
2015.01.28. 6:04 ezt írta ("François Laupretre" <francois@tekwire..net>):
>
> > De : Rowan Collins [mailto:rowan.collins@gmail.com]
> > I would like to propose that the error given for an undefined constant
> > should be raised from E_NOTICE, probably to E_RECOVERABLE_ERROR, in
> > PHP 7.
>
> +1
>
I don't like that.
Depending if we want to keep the behavior on the long term I would either
go with E_WARNING or E_DEPRECATED
Turning it into E_RECOVERABLE_ERROR would be for most users just as bad as
removing it while we still have to support the behavior so no real gain for
us.