MantisBT: master 4d213ec0

Author Committer Branch Timestamp Parent
dregad dregad master 2026-01-12 19:18 master 7d425ae4
Affected Issues  0036812: PHP 8.4: Passing E_USER_ERROR to trigger_error() is deprecated
Changeset

Adapt plugin_errors() to E_USER_ERROR

Switch from ERROR to E_USER_ERROR.

Implement a mechanism to provide backwards compatibility for plugins
calling trigger_error(), capturing the error type and throwing an
exception with a new ERROR_PLUGIN_RUNTIME error code, necessary because
Exception code must be integer and plugin errors are identified by a
string.

Fixes 0036812

mod - core/constant_inc.php Diff File
mod - core/plugin_api.php Diff File
mod - lang/strings_english.txt Diff File