Unexpected character in input: ‘\’ (ASCII=92) state=1

This happens if you are trying to use namespaces but do not have PHP 5.3. PHP 5.2 and below don’t support namespaces and throw this error when they see the backslash.


Edit: mixed up the versions. It’s 5.2 and below that don’t have namespaces, if I’m not mistaken.

Leave a Comment