ID:               24422
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bart_de_boer at msn dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Class/Object related
 Operating System: IIS 5
 PHP Version:      5.0.0b1 (beta1)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

'main' is no longer reserved class name.


Previous Comments:
------------------------------------------------------------------------

[2003-06-30 15:02:58] bart_de_boer at msn dot com

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24422&edit=1

Reply via email to