Upgrading PHP

Upgrade Compatibility Reply From ZTech

Upgrade

Gathering information I have on installing/upgrading PHP on CentOS7

Compatibility

A related issue is the compatibility of WordPress and the themes/plugins we use with updated versions of PHP. Running the "PHP Compatibility Checker" plugin on WordPress gives 3 warnings for the plugin "PostMash Custom" (but clean bills of health on everything else):

FILE: /srv/www/htdocs/wp-content/plugins/postmash-custom/myjson.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------
 133 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
 783 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
 797 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
----------------------------------------------------------------------------------------------
Once we upgrade PHP to version 8.x there is a reasonable risk that these warnings will become errors and I doubt that the "PostMash Custom" plugin will be updated:
Moving forward, we could

A Reply From Geof Newton (ZTech)

The PHP question is actually pretty simple :-) – I’ve had no end of incompatibility and stability problems with v8 so it’s highly recommended by pretty much everyone to go to 7.4 and ignore that 8 exists for now.