MantisBT: master 7d425ae4

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

Build error message and location in error_output()

It is not necessary to build the error message in error_handler() since
all the necessary information including localized message, filename and
line number is partof the ErrorHandlerException.

This simplifies error_handler(), which just needs to build the
Exception as appropriate and call error_output().

We also don't need the setCode() and setMessage() methods in
ErrorHandlerException anymore.

Issue 0036812

mod - core/error_api.php Diff File
mod - core/exceptions/ErrorHandlerException.php Diff File