|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-12 23:16 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
Description: ------------ An object named List, named after a common data structure, is parsed as a T_LIST. I know many PHP applications use list(), but I think the engine could be made a little smarter by checking if this T_LIST could _also_ be a T_STRING in cases like these: interface List { ... } and: function anything(List $x) { ,,, } It will be appreciated if the engine detects the user is declaring an object named List and thus not parsing it as a T_LIST in this case. Because List is the name of a common data structure, it is a little bit annoying to see PHP displays a parse error instead of recognizing it as a T_STRING.