Skip to content

Unify const-expression/constant-expression, arrays are allowed in constants since 5.6#90

Closed
hikari-no-yume wants to merge 1 commit into
php:masterfrom
hikari-no-yume:constant_arrays
Closed

Unify const-expression/constant-expression, arrays are allowed in constants since 5.6#90
hikari-no-yume wants to merge 1 commit into
php:masterfrom
hikari-no-yume:constant_arrays

Conversation

@hikari-no-yume

Copy link
Copy Markdown
Contributor

Unfortunately HHVM doesn't support them yet. Maybe this'll motivate them to actually support it.

@fredemmott

Copy link
Copy Markdown

This doesn't appear to be accurate for define(): http://3v4l.org/PQ7fs

@hikari-no-yume

Copy link
Copy Markdown
Contributor Author

Yes, define() doesn't support them. Let me add a note about that.

@hikari-no-yume

Copy link
Copy Markdown
Contributor Author

Well, PHP master now does support them for define(), and this ought to be targeted at PHP-5.6, not master. Let me fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants