PHP

PHP Fatal Flex Scanner Internal Error

Recently when coding in PHP I got this error:

Fatal error: fatal flex scanner internal error–end of buffer missed in [file] on [line number]

Turns out it was because I forgot to close a comment block (forgot the */). Thought I’d post it here in case it helps someone. :)

T_PAAMAYIM_NEKUDOTAYIM

Parse error: parse error, unexpected ‘[‘, expecting T_PAAMAYIM_NEKUDOTAYIM in _____ on line 30

T_PAAMAYIM_NEKUDOTAYIM is Hebrew, and it refers to PHP’s scope resolution operator (“::”). If you get this message, it means PHP sees a class name and expects you to access it with the scope resolution operator.

In my case, the problem was that I was referencing a PHP variable without a dollar sign, so PHP thought it was a class name. Oops!