Bug 2086282 - Zabbix 5.0.21 not compatible with PHP 8.1.5
Summary: Zabbix 5.0.21 not compatible with PHP 8.1.5
Keywords:
Status: CLOSED DUPLICATE of bug 2020292
Alias: None
Product: Fedora
Classification: Fedora
Component: zabbix
Version: 36
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-15 10:13 UTC by Václav Nováček
Modified: 2022-05-15 14:11 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-15 14:11:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
zabbix web page (602.15 KB, image/jpeg)
2022-05-15 10:13 UTC, Václav Nováček
no flags Details

Description Václav Nováček 2022-05-15 10:13:07 UTC
Created attachment 1879826 [details]
zabbix web page

Description of problem:
Zabbix 5.0.21 doesn't work properly together with PHP 8.1.5.
It shows everywhere:
    mysqli::real_connect(): Passing null to parameter #7 ($flags) of type int is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → MysqlDbBackend->connect() → mysqli->real_connect() in include/classes/db/MysqlDbBackend.php:173]
    setcookie(): Passing null to parameter #5 ($domain) of type string is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CWebUser::setSessionCookie() → zbx_setcookie() → setcookie() in include/func.inc.php:107]

Version-Release number of selected component (if applicable):
Zabbix 5.0.21

How reproducible:
Just install zabbix-server-mysql and php packages from distribution.

Comment 1 Orion Poplawski 2022-05-15 14:11:35 UTC

*** This bug has been marked as a duplicate of bug 2020292 ***


Note You need to log in before you can comment on or make changes to this bug.