|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-30 10:49 UTC] me at gerryevans dot com
[2009-10-30 12:08 UTC] colder@php.net
[2009-10-30 12:39 UTC] me at gerryevans dot com
[2009-10-30 16:03 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 14:00:01 2025 UTC |
Description: ------------ PHP doesn't like it when a namespace starts with a number for example a namespace 12eggs will get a parse error ("syntax error, unexpected T_LNUMBER, expecting T_STRING or T_NS_SEPARATOR or '{'"). Reproduce code: --------------- <?php namespace 12eggs; echo __NAMESPACE__; ?> Expected result: ---------------- 12eggs Actual result: -------------- Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING or T_NS_SEPARATOR or '{' in FILE on line 3