Re: PHP unexpectedly speaking Hebrew on me - explanation found

2006-09-09 Thread Stanislav Malyshev

It seems that an Israeli PHP programmer (probably working for Zend)
didn't know how to say "double colon" in English, so he coded the
token's name in transliterated Hebrew (Zend/zend_language_scanner.l,
  
Well, almost true, but not entirely. The "Israeli programmer" are 
actually Zeev Suraski and Andi Gutmans, who are Israeli and who wrote 
the engine for PHP 3 and who later indeed created the Zend company. They 
know very well how to say "double colon" in English, but this token name 
was a kind of inside joke and it was left there for PHP 4 and 5 and will 
be there in PHP 6. This joke, as you imagine, is known to everybody "in 
business" and is listed in all online resources like Wikipedia for 
years. You can consider it a sort of easter egg (btw, there is at least 
one other easter egg in PHP :)

Now I'm wondering whether to submit a patch? In any case, google knows
  
You might do that, but chances of it being accepted are zero :) Google 
and Wikipedia rule, however.



=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: PHP unexpectedly speaking Hebrew on me - explanation found

2006-09-09 Thread Ilya Konstantinov

Shachar Shemesh wrote:


It seems that an Israeli PHP programmer (probably working for Zend)
didn't know how to say "double colon" in English
It is an in-joke, probably made by Zeev Suraski or one of the other 
Israelis working on PHP3 (long before Zend was formed). No need to rush 
with a patch.


http://en.wikipedia.org/wiki/Paamayim_Nekudotayim


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: PHP unexpectedly speaking Hebrew on me - explanation found

2006-09-09 Thread Shachar Shemesh
Shachar Shemesh wrote:

> I'm trying to figure out why my wordpress plugin won't work on PHP4, and
> I'm getting this strange error:
>
>
> [EMAIL PROTECTED]:~/sources/wordpress$ ./test.php
>
> X-Powered-By: PHP/4.4.2-1.1
> Content-type: text/html
>
> 
> Parse error:  syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in
> /home/sun/sources/wordpress/test.php on line 7
>
>   
Ok, I found the explanation, and it has nothing to do with locale.

The error, in plain English, is this. The first word (unexpected)
translates to:
"While running the syntactic parser I found a token identified by the
lexical analyzer in an unexpected location"
The second word is the name of the token: T_PAAMAYIM_NEKUDOTAYIM.

It seems that an Israeli PHP programmer (probably working for Zend)
didn't know how to say "double colon" in English, so he coded the
token's name in transliterated Hebrew (Zend/zend_language_scanner.l,
line 911 on my Debian PHP4 sources). He probably figured that the end
user will never see this anyway, and the other programmers, well, they
are either Zend employees too, or they can follow the symbol definition
and find out what it means.

Now I'm wondering whether to submit a patch? In any case, google knows
of many people preplexed by this question, most of them actually
receiving an answer. I've submitted a note to the relevant page on the
PHP manual.

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]