fixes for PHP8 (EL9)
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:
- Changes old-style constructors (
function
with the same name as theclass
) to use__construct
instead. - 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.