View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025631 | mantisbt | administration | public | 2019-03-21 13:12 | 2019-04-21 02:53 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.11.0 | ||||
Target Version | 2.21.0 | Fixed in Version | 2.21.0 | ||
Summary | 0025631: PHP Notice or incorrect file+line number when displaying DEPRECATED error | ||||
Description | When the MantisBT error handler processes an E_USER_DEPRECATED error, it either
| ||||
Additional Information | Regression introduced by MantisBT master 295526c2 | ||||
Tags | No tags attached. | ||||
MantisBT: master 295526c2 2017-12-07 09:35 Details Diff |
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. |
Affected Issues 0025631 |
|
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 | ||
MantisBT: master 11deb61f 2019-03-21 08:45 Details Diff |
Fix retrieval of deprecated error details The error_stack_trace() function contains logic to exclude the Error API internal function calls. However, when it was introduced (see commit 295526c27b3978363530060f399c153e36f4758e), the code processing E_USER_DEPRECATED errors in error_handler() was not adapted. This causes the error handler to throw 'Notice: Undefined offset' or to return incorrect file and line number information Fixes 0025631 |
Affected Issues 0025631 |
|
mod - core/error_api.php | Diff File |