MantisBT: master 11deb61f

Author Committer Branch Timestamp Parent
dregad dregad master 2019-03-21 08:45 master 16909b66
Affected Issues  0025631: PHP Notice or incorrect file+line number when displaying DEPRECATED error
Changeset

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

mod - core/error_api.php Diff File