News for hackers. Stuff that matters.
Re:PHP 7.1.0 Released by maweki on Friday December 02, 2016 @02:09AM (#13086745)
That makes it doubly funny since the real reason is that the parser couldn't handle the other case.

Even a blind php dev...

Re:PHP 7.1.0 Released by TazeTSchnitzel on Friday December 02, 2016 @09:19AM (#13088680)
There's nothing wrong with the lexer or the parser. Avoiding becoming like C, where lexical analysis can't be done without knowing context, is a good thing.

PHP actually once supported this kind of ambiguity (PHP/FI 2.0 ended PHP code with a single > yet also allowed if ($a > $b)), but this wasn't a good idea and resulted from a greatly suboptimal implementation.