Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> but did they ever actually fix the WTFs from PHP 4

Depends what you class as a WTF. The older parts of the standard library are still wildly inconsistent in function naming and argument order, but that’s never going to change because it’s simply not worth the BC break.

But they’ve done a good job cleaning up the actually problematic bits of the language. Previous horribly insecure defaults like register_globals and magic quotes are long gone. And in recent years they’ve worked on tightening things up: many obviously incorrect behaviours have been promoted from notices or warnings to outright errors.



>depends on what you class as a WTF

It might take a while to enumerate them all ;)

https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/


There’s some fair points in there, some unfair ones, and some outdated ones (unsurprisingly given it’s nearly 13 years old).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: