T_PAAMAYIM_NEKUDOTAYIM?

February 7, 2010 · Posted in PHP 

What the heck is “T_PAAMAYIM_NEKUDOTAYIM” ???

When you are programming classes in PHP, you might encounter this error.

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in xxxxxx on line nn

Well, basically you screwed up some static scope reference somewhere. The origin of this error is something to do with the origin of PHP. According to wiki, the language was once worked on by two Israeli developers:

paam –> One

ayim –> Doubled

nekudot –> Dot

ayim –> Doubled

Seems like it means “double-colon” in Hebrew.  (static class reference)

The easiest way to reproduce is:

<?php

$test::bogus();

?>

For many ways, the above reference method is wrong…

Comments

Leave a Reply




Security Code: