| ▲ | Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan(adamgreenough.net) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 points by xadz 6 hours ago | 16 comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | dofm an hour ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A lot of people on old servers with old PHP are only ever going to risk the smallest upgrade they can, to avoid deprecation issues. There's a deprecation in PHP 8.0 to do with the order of parameters with default values that will bite a lot of code. In PHP 8.2, they deprecated creation of dynamic properties on classes without #[AllowDynamicProperties] pragmas or __get/__set accessors. That one also messes with a fair bit of code, though it's an easy enough thing for an LLM to just add that attribute to every class. There's also the "left behind" tax: the older your server becomes through sheer complexity of upgrading, the more likely you are to have to compile PHP from source, which is not the nicest when you are likely to have to replace a distribution version that had a bunch of packages installed. I was in this position for one machine for PHPShell; I had to build the patched 7.4. I happen to know that the deprecations in 8.2 will bite me, but the old project is going to get a more considerable overhaul sooner than that, so that it is in more LLM-friendly patterns. Random side note: if you are revitalising an old PHP app and intend to migrate it away from PHP to another language, one sane intermediate step you might consider is reworking it to use the Slim framework ( https://www.slimframework.com ) which uses a compact form of route closure definition that is so similar to e.g. Express, Gin, the core Golang http.Handle APIs etc. that it will be a much easier task to scrutinise when you get there. LLMs seem positively giddy about the prospect. Type hints would help, too. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | NooneAtAll5 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I don't think websites that haven't upgraded for so long have been keeping with updates anyway | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | paulryanrogers 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Looks like Rocky 8 can still get you PHP 7.4 updates. And paid RHEL 7 can deliver PHP 5.4 until 2029. IMO it's not worth staying on versions so ancient, especially for WP and its community which is largely on PHP 8. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | ajasmin 2 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Are these sites even keeping up with patches, though? Being on a supported version can help deploy a fix when forced into a corner, but if you don't have an established, regularly exercised update process, you're still in for a world of pain, as I'm sure plenty of PHP admins have found out recently. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||