[ZBXNEXT-7080] Provide Frontend support for the upcoming PHP 8.0 + JIT Created: 2020 Jun 18 Updated: 2024 Apr 10 Resolved: 2022 Jul 15 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F) |
Affects Version/s: | None |
Fix Version/s: | 6.0.7rc1, 6.2.1rc1, 6.4.0alpha1, 6.4 (plan) |
Type: | Change Request | Priority: | Critical |
Reporter: | Edgar Akhmetshin | Assignee: | Zabbix Development Team |
Resolution: | Fixed | Votes: | 18 |
Labels: | Frontend, PHP, PHP-FPM, PHP8 | ||
Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
Attachments: |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Issue Links: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sub-Tasks: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Team: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sprint: | Sprint 83 (Dec 2021), Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Story Points: | 5 |
Description |
Steps to reproduce: |
Comments |
Comment by Alexei Vladishev [ 2022 Apr 08 ] |
Just a quick status update. We are still working on this, support of PHP8 appeared to be much more complex than initially thought. No ETA yet. |
Comment by Olexandr [ 2022 Apr 23 ] |
Hello, |
Comment by Shawn Heisey [ 2022 Apr 23 ] |
I already upgraded to Ubuntu 22. It has PHP 8.1. Now the web frontend for zabbix doesn't work. Oops. Should have checked more carefully. |
Comment by Shawn Heisey [ 2022 Apr 27 ] |
Here we are nearly 3 weeks after saying No ETA. Is there any ballpark ETA now? This is what I am currently getting from the 8.1 version of php-fpm being called by Apache 2.4. This is after logging in, which SEEMS to work. My zabbix version is "1:6.2.0~alpha2-1+ubuntu20.04" installed from the zabbix APT repository. [Tue Apr 26 20:24:05.778368 2022] [proxy_fcgi:error] [pid 1628576] [client 127.0.0.1:45000] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class "CMessageHelper" not found in /usr/share/zabbix/include/func.inc.php:2041 Stack trace: #0 /usr/share/zabbix/include/func.inc.php(2300): error() #1 /usr/share/zabbix/include/classes/core/CAutoloader.php(77): zbx_err_handler() #2 /usr/share/zabbix/include/classes/core/CAutoloader.php(77): require('...') #3 /usr/share/zabbix/include/func.inc.php(2041): CAutoloader->loadClass() #4 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(80): error() #5 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(82): CFrontendApiWrapper->callMethod() #6 /usr/share/zabbix/include/classes/user/CWebUser.php(99): CApiWrapper->__call() #7 /usr/share/zabbix/include/classes/core/ZBase.php(533): CWebUser::checkAuthentication() #8 /usr/share/zabbix/include/classes/core/ZBase.php(193): ZBase->authenticateUser() #9 /usr/share/zabbix/include/config.inc.php(25): ZBase->run() #10 /usr/share/zabbix/index.php(24): require_once('...') #11 {main} th...' Is there some kind of fundamental difference in how PHP 8.1 handles includes compared to older version? The CMessageHelper class file appears to be there. |
Comment by Alexei Vladishev [ 2022 Apr 27 ] |
elyograg, indeed PHP 8.x is fundamentally different comparing to previous releases. We want to keep our code as strict and safe as possible, this requires manual review and additional testing. Some things cannot be automated unfortunately. I will try to update on ETA later today. |
Comment by Shawn Heisey [ 2022 May 03 ] |
6.2.0~beta1 dropped on the ubuntu repo, and now my zabbix frontend works again. Thanks for your efforts!
|
Comment by Oleksii Zagorskyi [ 2022 May 03 ] |
Let me note my observation: |
Comment by Alexey Pustovalov [ 2022 May 13 ] |
Some Zabbix docker images are prepared to use PHP 8. I recommend do not use "latest" tag, use specific version instead. When 6.0.5 will be released Zabbix will be ready for PHP 8.0+. |
Comment by Olexandr [ 2022 May 17 ] |
Hello, |
Comment by Alexander Vladishev [ 2022 Jul 15 ] |
Documentation updated:
|
Comment by Stuardo Rodríguez [ 2022 Jul 15 ] |
Is this only about PHP 8.0 support, or about the JIT too? I don't see anything in the "updated¨ documentation about JIT |