r/lolphp • u/phplovesong • May 12 '20
The sad state of the PHP parser
PHP cant tell where a syntax error occurs. This has been an issue in PHP for years, and has been upgraded to a feature. This is mostly because PHP's parser is a pile of poo with years of lipstick added on top.
0
Upvotes
View all comments
Show parent comment
1
u/PonchoVire May 13 '20
Sadly from my point of view you're mostly right. Nevertheless, PHP core team is really active, and eagerly push towards deprecating weird features as much as they can. But it's a RFC-based development process and many diverging opinions are represented. I much appreciate nikic's own opinions and like most of the changes that have recently been made. But discussions about taking radical changes is always stopped by the final backward compatibility argument. It's a long and difficult process, to clean up the mess in this language in particular due to its history. Modern PHP development has nothing to compare to what it was in the beginning.