
Got this error message while building a system for a client...
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/prettyge/public_html/clients/crazyd/admin.php on line 142
After you've been programming a while, you generally know what the error means... syntax errors are just silly, sometimes you forget a closing '}' ... but I'd never seen that one before.
Quelle excitement! I don't even know what a PAAMAYIM NEDUDOTAYIM is! I wonder what it would look like?!
Checking out line 142, the error was obvious but in a non-obvious way:
$HTML::Out("<option value='$u->user_id' $option>$u->nickname</option>";
Can you find it? Hint: it's a syntax error. Oh yeah, the first character '$' shouldn't be there.
Doh!
But seriously, that was the most exciting error I've seen in ages, partly because it looks okay if you view PHP code with HTML eyes, and partly because I learned that PAAMAYIM NEDUDOTAYIM means "double colon" (::) in Hebrew.
No comments:
Post a Comment