-
-
Notifications
You must be signed in to change notification settings - Fork 436
Improve compatibility for Error constants under PHP 8.4 #5986
Copy link
Copy link
Closed
Labels
bugUndesired behaviourUndesired behaviourconfirmedBug is confirm by dev teamBug is confirm by dev team
Milestone
Description
cacti 1.2.28 logs lots of php errors with php8.4
Debian is in the process of migrating to php8.4. Running the cacti test suite fails with PHP errors in cacti.log.
To Reproduce
Steps to reproduce the behavior:
-
Install php version 8.4 and use it to serve the web site.
-
Open cacti in a web browser.
-
See the following in the
cacti.log:
2024-12-12 12:37:23 - ERROR PHP Unknown Error: Constant E_STRICT is deprecated in file: /usr/share/cacti/site/include/global_arrays.php on line: 479
2024-12-12 12:37:23 - CMDPHP PHP ERROR Backtrace: (/index.php[25]:include(), /include/auth.php[27]:require_once(), /include/global.php[550]:include_once(), /include/global_arrays.php[479]:CactiErrorHandler())
Expected behavior
Cacti doesn't log errors.
Desktop
-
OS: Debian (Linux)
-
Browser: wget
-
Version 1.24.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourconfirmedBug is confirm by dev teamBug is confirm by dev team