MantisBT: master 905f74e5

Author Committer Branch Timestamp Parent
dregad dregad master 2026-01-11 09:05 master 07bece08
Affected Issues  0036812: PHP 8.4: Passing E_USER_ERROR to trigger_error() is deprecated
Changeset

error_string() accepts optional error params array

Refactored the function to accept an optional $p_param parameter to
provide the error parameters.

This reduces dependency on the $g_error_parameters global, which is only
used when $p_param is not specified or null. In this case, the function
will only consume as many error parameters as required by the message
string. Used parameters are removed from the stack.

Issue 0036812

mod - core/error_api.php Diff File