Page 1 of 1

Really unheard error in PHP? Whassup??

Posted: Fri Aug 26, 2005 2:52 am
by n00b Saibot
I was browsing here when my colleague showed me this...
Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in c:\web\Suman\usephp\try.php on line 15
relative line in php-code

Code: Select all

$num1 =(!empty($_REQUEST[‘num1’]))?$_REQUEST[‘num1’] ::null;
I know the error is with the colon in ternary op. but what in the hell is "T_PAAMAYIM_NEKUDOTAYIM" ??? :?

Posted: Fri Aug 26, 2005 2:59 am
by JayBird
It is Hebrew and means you have a double colon

http://digitalfiefdom.org/index.php/200 ... -the-heck/

Posted: Fri Aug 26, 2005 3:14 am
by n00b Saibot
Thankx mate for this, So I take it they must have been deep in Hebrew, eh! That gives me enough inspiration to start writing extension to PHP which will report errors in Hindi, Urdu, Farsi or maybe Polish, Armenian or one of those Star (Wars|Trek) series languages :lol:

BTW, is there any other similar Hebrew error in PHP :?:

PS: Methinks, Regex has taken its toll on me, whaddya say...

Posted: Fri Aug 26, 2005 4:39 am
by s.dot
Pimptastic wrote:It is Hebrew and means you have a double colon

http://digitalfiefdom.org/index.php/200 ... -the-heck/
Nah, I believe it's jibberish for 'your code is <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurfer</span> 'd up :!:'

Posted: Fri Aug 26, 2005 11:37 am
by Stewsburntmonkey
n00b Saibot wrote:Thankx mate for this, So I take it they must have been deep in Hebrew, eh! That gives me enough inspiration to start writing extension to PHP which will report errors in Hindi, Urdu, Farsi or maybe Polish, Armenian or one of those Star (Wars|Trek) series languages :lol:

BTW, is there any other similar Hebrew error in PHP :?:

PS: Methinks, Regex has taken its toll on me, whaddya say...
PHP will give you errors in whatever language you tell it to (as long as it has an error file in that language). :)

Posted: Fri Aug 26, 2005 1:08 pm
by wwwapu
Pimptastic wrote:you have a double colon
It's possibly in Hebrew for this mixup possibility

Posted: Fri Aug 26, 2005 1:30 pm
by Roja
Stewsburntmonkey wrote: PHP will give you errors in whatever language you tell it to (as long as it has an error file in that language). :)
Yes, but this one presents the HEBREW verbage, even when other errors are in english.. its specifically a 'unique' phrase used to ensure there won't be confusion over "colon", as wwwapu mentioned.

At least, I think so. I'm not sure on this one. (pun intended).

Posted: Fri Aug 26, 2005 1:42 pm
by Ambush Commander

Posted: Fri Aug 26, 2005 2:02 pm
by Stewsburntmonkey
I was actually fully aware of that. I was refering the part of the post where the poster said he was going to write extensions to give errors in different languages. I was simply pointing that this is already a part of PHP. :)

Posted: Sat Aug 27, 2005 4:51 am
by n00b Saibot
Stewsburntmonkey wrote:I was refering the part of the post where the poster said he was going to write extensions to give errors in different languages. I was simply pointing that this is already a part of PHP.
So I guess I got a new project for myself. anyone wanna try a hand at it first ? How about onion2k :P