|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-30 15:28 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 03:00:01 2025 UTC |
Description: ------------ I use a class called "main" in my script. When testing with PHP5 I got: Fatal error: Cannot use 'main' as class name as it is reserved in D:\Inetpub\wwwroot\test.php on line n I'm assuming that this means PHP5 will provide some standard way for defining a main class. I couldn't find anything about it anywhere. Instead of renaming all my "main" classes I would much rather like to start using this new main feature right away. Reproduce code: --------------- class main { } Expected result: ---------------- Standard class definition or main class definition. Actual result: -------------- Fatal error: Cannot use 'main' as class name as it is reserved in D:\Inetpub\wwwroot\test.php on line n