|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-11 22:14 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 00:00:01 2025 UTC |
Description: ------------ The parser error said: "expecting ... T_STATIC" in class and interface declarations when used keywords in 'extends' or 'implements'. Eg. extends use extends import extends namespace extends extends extends class With 'extends static' show: Fatal error: Cannot use 'static' as class name as it is reserved in ... Reproduce code: --------------- class foo extends namespace { } Expected result: ---------------- Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING or T_PAAMAYIM_NEKUDOTAYIM Actual result: -------------- Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING or T_STATIC or T_PAAMAYIM_NEKUDOTAYIM