Re: [RFC] Throw Exception on Attempt of Constant Redefinition
| From: | Stanislav Malyshev | Date: | Thu, 16 Jun 2016 17:14:13 +0000 |
| Subject: | Re: [RFC] Throw Exception on Attempt of Constant Redefinition | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94048@lists.php.net to get a copy of this message | ||
Hi!
> Please review: https://wiki.php.net/rfc/constant_redefinition
I would propose to not throw an error if constant is redefined to
exactly the same value. Some of the code might be doing this
unknowingly, e.g. by writing include instead of include_once, and
there's no real reason to break it.
--
Stas Malyshev
smalyshev@gmail.com