[PHP-BUG] Bug #67776 [NEW]: Constant Expressions Syntax

[email protected] ("[email protected]")
Newsgroups php.standards
Message-ID <[email protected]>
From:             joelm
Operating system: 
PHP version:      Irrelevant
Package:          PHP Language Specification
Bug Type:         Bug
Bug description:Constant Expressions Syntax

Description:
------------
https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#constant-expressions

The syntax rules for this look wrong. It appears that
constant-expression can produce any expression which is too broad;
constant-expression is only suppose to be able to produce restricted
expressions that can be used for default value initializer or a property
initializer. 

(However, it is believed by some that the Constraints sufficiently limit
the syntax to what is being suggested. So this may not be an issue.)


-- 
Edit bug report at https://bugs.php.net/bug.php?id=67776&edit=1
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.