|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-18 13:54 UTC] andre at neo-anime dot org
[2011-08-18 14:39 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-08-18 14:39 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 00:00:02 2025 UTC |
Description: ------------ As of PHP 5.3.0 global constants can be declared using the const keyword in addition to the define() function. However token_get_all() incorrectly recognizes the former as a class constant. Test script: --------------- <?php define('BAR', FALSE); Expected result: ---------------- T_OPEN_TAG T_STRING T_CONSTANT_ENCAPSED_STRING T_WHITESPACE T_STRING Actual result: -------------- T_OPEN_TAG T_CONST T_WHITESPACE T_STRING T_WHITESPACE T_WHITESPACE T_STRING