|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-07 16:22 UTC] carsten_sttgt at gmx dot de
[2007-11-07 17:56 UTC] uli dot staerk at globalways dot net
[2007-11-11 14:58 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 02:00:02 2025 UTC |
Description: ------------ You can define class constants like: class foo { const bar = "baz"; } But if the constant-name is array, it does not work. Reproduce code: --------------- <?php class Test { const Array = "array"; } ?> Expected result: ---------------- It should work ;) Actual result: -------------- Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING in test.php on line 4