Skip to content

fixes for PHP8 (EL9)

Tim Adye requested to merge php8 into master

When WebEOS upgrades from CentOS7 to AlmaLinux9 (EL9), PHP 5 will be upgraded to PHP 8. This won't affect the default HTML display, but breaks the PHP display. This MR changes some things in dcube.php and rw.php that give errors in the new version:

  1. Changes old-style constructors (function with the same name as the class) to use __construct instead.
  2. Add @ error suppression operator to array lookups that might have undefined keys.

Both these changes are supported in PHP 5, but are required in PHP 8.

Merge request reports