Parse error: syntax error, unexpected T_SL
in...
Parse error: syntax error, unexpected T_SL in...
("token_shiftLeft" is what it turned out being, from a git-merge
's <<<<<<<
)
PHP 5.4 still calls it T_SL
, but includes '<<'
in the error message, making it only mildly less confusing:
$ php -r '<<' Parse error: syntax error, unexpected '<<' (T_SL) in Command line code on line 1
Of course, right shifts (T_SR
) have the same problem:
$ php -r '>>' Parse error: syntax error, unexpected '>>' (T_SR) in Command line code on line 1
Significance: Fast Debugging
It is very important to be able to quickly debug issues in your application. When every second of downtime costs your company money, bad error messages can mean thousands of dollars in unnecessary losses and hours of wasted developer time. Languages posing to be used in large applications need to ensure that developers can quickly discern the cause of an issue.