Re: Weird constant expression syntax and bug
| From: | Stas Malyshev | Date: | Wed, 23 Jul 2014 20:33:29 +0000 |
| Subject: | Re: Weird constant expression syntax and bug | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75975@lists.php.net to get a copy of this message | ||
Hi!
> It was a restriction to not support arrays in constant context. It seems
> like nobody can remember why it was introduced.
My vague recollection is that it had some troubles with keeping
refcounts consistent, esp. withing bytecode caching context, but it may
be a false memory :)
> However, I think it's too dangerous to break it in last minute before
> release.
We definitely need to fix the WTF with "no runtime use" for defined
constant and the segfault before the release. I think for the arrays, if
we can't have it working properly we'd better not have array support
there for 5.6.0 and fix it in 5.6.1 than have this weird "no runtime
use" thing.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/