waikay.net

rambles of an avid procrastinator
"Why do today what you can do tomorrow?"

T_PAAMAYIM_NEKUDOTAYIM

Thursday, 16 August 2007, 1:50 am, me

In all my life coding in PHP and reading error messages I have yet to come across this weird and frightening message

Parse error: syntax

error, unexpected ;, expecting T_PAAMAYIM_NEKUDOTAYIM

At first glance I just noted the line number and took a look there. Seeing nothing unusual I went to read the error message.

(Yes we actually try to understand error messages because they really help in your debugging.)

It was then I got a shock. What in the world is a “T_PAAMAYIM_NEKUDOTAYIM“??!! Heck I can’t even pronounce it.

My first thought is that my PHP complier screwed up but then I decided the Google will hold the answer.

So copying and pasting almost the whole of the error message into Google, it was discovered that T_PAAMAYIM_NEKUDOTAYIM is actually Hebrew for “::”, the double colon token.

Further probing showed that

T - stands for Token
PAAMAYIM - means double
NEKUDOTAYIM - means dots, or colon

in Hebrew.

I first thought that the programmers a having some humour but it turns out PHP was written by Israelis. Probably started development in their native tongue, it’s more likely they just missed this in translation.

A quick look at http://www.php.net/manual/en/tokens.php shows that even though an alias T_DOUBLE_COLON has been assigned, this phrase is embedded in PHP history.

How amusing.

Filed under: jargon

Trackbacks

Trackback URL: http://waikay.net/2007/08/t_paamayim_nekudotayim/trackback

Comments

enigma says,
18 Aug 2007, 1:28 pm

Funny )

Hey, noticed that most other visitors come here cos they dig the plugins? Judging by the recent comments, that is. Hmm…

soph says,
19 Aug 2007, 10:44 pm

seriously. i totally caught freaking no ball with that post

xeno1887 says,
23 Aug 2007, 4:14 pm

Hello can i have simple spoiler 1.5 please ?
thanks
xeno1887[at]hotmail[dot]com

cheesecake says,
25 Aug 2007, 9:42 am

That was an interesting piece of amusement

18 Dec 2007, 6:13 am

This error message also occurs other times though when there is no double colon anywhere, for example, if you forget a $ when assigning by reference. Oh well…

18 Dec 2007, 6:13 am

BTW, it’s also amusing to see all the full-disclosure PHP errors in the right column on a production server )

RSS feed for comments on this post.

(required)
(required. will not be published)

« What to do in a hotel fire Back to Main My Pre-Orange Box »
Creative Commons License
Except stated otherwise, content of this site is
licensed under a Creative Commons License.