#131 class name 'Trk' causes parser error

version 1.2.1
open
nobody
5
2007-11-20
2007-11-20
Zoltán Németh
No

I have a class named Trk. Example class declaration:

class Trk
{
public static function eheehehe()
{
return true;
}
}

it causes the following error:

Parser error "Class name expected after keyword 'class'."

(of course the class is much more complex in reality, but this example also leads to the error)

also, I have another file where I call a static class method like

Trk::somemethod($somevar);

and it causes this error:

Parser error "'}' expected in compound-statement."

Discussion