PHP Syntax Error: t_paamayim_nekudotayim
I came across this error while working on a client’s site :
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home//public_html/mdt/lib/accesslib.php on line 5295
It took me quite a while to figure this one out, but this is how I eventually figured out the error message:
It’s a very rare syntax error in PHP and has that Hebrew name to go with it which easily confuses you.
I broke it up in words and translated it from Hebrew to English : “double colon (::) error”
So now : Parse error: syntax error, unexpected [ double colon] in /home//public_html/mdt/lib/accesslib.php on line 5295
The double-colon thing comes from early versions of PHP.
So now that I know it’s a syntax and what the possible cause is, I started playing around different versions of PHP.
From PHP5.3 and up, the error goes away.