2023-05-25 12:49 UTC
@alice@marrow.haus
PHP has a *very* long deprecation path, because the goal is to have backwards compatibility as much as possible going through 2 major versions.
Most PHP sites are very rarely updated. Wordpress does a LOT wrong, but constantly nagging admins to update, and making it easy to do so, is a good thing.
The PHP core team values the ability to push out security updates that server admins can be confident won't break anything...
Which means that, if you want to deprecate something, the path is: At the next major version change, you do something like emitting a warning or making an argument required. Hopefully over the 3 to 5 years that the major version is alive for, people will address the warning/fix their code.
Then, when the next newer major version comes out, you can emit your fatal errors and remove the deprecated feature... But the PHP team will still maintain the old version for bux fixes for 2 years and security issues for 3 years.
So the average length of time to truly deprecate things like register_globals is around 8 years. And you'll still have sites breaking because they weren't bothered to look at a single log in all that time.
Replies (0)
No replies.