MantisBT: master 295526c2

Author Committer Branch Timestamp Parent
vboctor vboctor master 2017-12-07 09:35 master f9d45aab
Affected Issues  0025631: PHP Notice or incorrect file+line number when displaying DEPRECATED error
Changeset

Support exceptions as a way to trigger errors

  • Add MantisException, ServiceException, and ClientException.
  • Add unhandled exception handler that forward to trigger error on error mode is display.
  • Force termination on case of E_USER_ERROR (aliased to ERROR in Mantis).

This allows replacing trigger_error( …, ERROR) with throwing the appropriate exception
while maintaining backward compatibility for UI code.

mod - core.php Diff File
rm - core/commands/CommandException.php Diff
mod - core/commands/MonitorCommand.php Diff File
mod - core/error_api.php Diff File
add - core/exceptions/ClientException.php Diff File
add - core/exceptions/MantisException.php Diff File
add - core/exceptions/ServiceException.php Diff File