Re: Weird constant expression syntax and bug
| From: | Stas Malyshev | Date: | Sat, 26 Jul 2014 22:02:43 +0000 |
| Subject: | Re: Weird constant expression syntax and bug | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76165@lists.php.net to get a copy of this message | ||
Hi!
> Could somebody please clarify what issues are still open here? From what
> I understand, both the opcache issue and the recursion issue are fixed
> now. What's the discussion about?
As I understand, the issue is that if you define class constant like this:
class Foo { const Bar = [0]; }
everything works fine. But if you do var_dump(Foo::Bar), it bombs out
with fatal error (the same goes for every other usage of that constant
in expression). Please correct me if my info is outdated, but I think it
is a behavior that should not be left in the release. If for some reason
we can't make array constants work normally, we should just omit them
altogether.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/