Parse Error: Unexpected FOO_BAR

Arancaytar's picture
You know you've been messing with PHP for too long when the error message you get back is

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /test.php on line 17


I know what a T_IF is (it's an if clause) or a T_FUNCTION is (it's a function declaration). But what on Earth is a T_PAAMAYIM_NEKUDOTAYIM? Did the programmer in question take a course in Thai? Or, given what this sounds like, in Cthulhu-lingo?

I'm already waiting to see a "Parse Error: Unexpected T_PHNGLUI_MGLWHNAFH_CTHULHU_RLYEH_WGAHNAGL_FHTAGN on line 66";

That'd be scary.
Update (2006-10-18):

Paamayim Nekudotayim is an (apparently misspelled) Hebrew phrase for "double colon".

A double colon, '::', is the delimiter Object-Oriented PHP uses to refer to static members of a class ('->' is used for object members).

And if the class name looks funny (and "funny" by PHP's standards is "completely crazy", given that you can use the value of a string like a hard-coded variable name or function name), this is the parsing error that results.

Someone apparently had a sense of humor.