zlacker

[return to "PHP 8.2"]
1. josefr+A8[view] [source] 2022-12-08 13:27:21
>>TimWol+(OP)
> PHP 8.2 is a major update of the PHP language.

Major update, awesome. /s

As someone who manages a network of 250+ WordPress websites - these PHP updates are killing me! As soon as I'm done helping clients upgrade/fix their incompatible themes/plugins and custom code, a new version is out! Even with great tools, the process for about 10% of my network is a nightmare.

While I appreciate the work, it's not very satisfying and for many clients very frustrating to pay for something they know nothing about, just to "keep the lights on".

◧◩
2. debesy+N9[view] [source] 2022-12-08 13:35:16
>>josefr+A8
Is it really that bad to use older version of PHP for longer?

The plugin/theme developers usually develop with older versions of PHP in mind, lot's of plugins still work even with 5.x versions...

For my WP sites I just stick with "two major versions behind" workflow and I don't encounter many problems.

Am I doing it wrong?

◧◩◪
3. htag+0n[view] [source] 2022-12-08 15:00:45
>>debesy+N9
In general yes, because of security support.

Moving from 7.4 -> 8.2 will be just as much refactoring as moving from 7.4->8.0->8.1->8.2. Security support is in general three years [0] so everything 7.X is now unsupported. Considering the security cadence you can skip one version, but if you skip two you'll probably be out of security support before you migrate to a new version. My philosophy is if you're going to need to do the work to upgrade anyway, you might as well do smaller chunks more frequently and be able to take advantage of the language goodies that come out earlier.

The amount of the language that gets deprecated every year is PHP's fundamental flaw, at least in the last five years.

[0] https://www.php.net/supported-versions.php

[go to top]