FS#77212 - [zabbix-frontend-php] Incompatibility with PHP 8.2

Attached to Project: Arch Linux
Opened by Oleksandr Natalenko (post-factum) - Saturday, 21 January 2023, 21:14 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 07 May 2023, 09:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After the latest PHP upgrade Zabbix WebUI is broken.

The following changes are required to make it work again:

```
diff '--color=auto' -Naur zabbix-6.2.6~/ui/include/classes/graphdraw/CGraphDraw.php zabbix-6.2.6/ui/include/classes/graphdraw/CGraphDraw.php
--- zabbix-6.2.6~/ui/include/classes/graphdraw/CGraphDraw.php 2022-11-28 09:51:05.795545369 +0100
+++ zabbix-6.2.6/ui/include/classes/graphdraw/CGraphDraw.php 2023-01-21 22:11:15.257446094 +0100
@@ -19,6 +19,7 @@
**/


+#[AllowDynamicProperties]
abstract class CGraphDraw {

/**
diff '--color=auto' -Naur zabbix-6.2.6~/ui/include/classes/helpers/CArrayHelper.php zabbix-6.2.6/ui/include/classes/helpers/CArrayHelper.php
--- zabbix-6.2.6~/ui/include/classes/helpers/CArrayHelper.php 2022-11-28 09:51:05.795545369 +0100
+++ zabbix-6.2.6/ui/include/classes/helpers/CArrayHelper.php 2023-01-21 22:12:07.084124859 +0100
@@ -169,7 +169,7 @@
}
}
self::$fields = $fields;
- uasort($array, ['self', 'compare']);
+ uasort($array, [self::class, 'compare']);
}

/**
diff '--color=auto' -Naur zabbix-6.2.6~/ui/include/classes/html/CTag.php zabbix-6.2.6/ui/include/classes/html/CTag.php
--- zabbix-6.2.6~/ui/include/classes/html/CTag.php 2022-11-28 09:51:05.799545414 +0100
+++ zabbix-6.2.6/ui/include/classes/html/CTag.php 2023-01-21 22:11:34.774115369 +0100
@@ -19,6 +19,7 @@
**/


+#[AllowDynamicProperties]
class CTag extends CObject {

/**
```

Probably, there are more places to change, but this is what I've managed to bump into.
This task depends upon

Closed by  Florian Pritz (bluewind)
Sunday, 07 May 2023, 09:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  Should be fixed with zabbix 6.4.x. If not, please reopen.

Loading...