Skip to content

Commit

Permalink
Let Error API capture E_USER_DEPRECATED by default
Browse files Browse the repository at this point in the history
Following introduction of DEPRECATED error type in issue #17837, it was
omitted to add E_USER_DEPRECATED to the list of error types captured by
default.

This prevented handling when error_reporting=0.

Follow-up on issue #10966, cec4549
Fixes #21795
  • Loading branch information
dregad committed Oct 12, 2016
1 parent d7c92d7 commit 4ee0da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/error_api.php
Expand Up @@ -46,7 +46,7 @@

# Make sure we always capture User-defined errors regardless of ini settings
# These can be disabled in config_inc.php, see $g_display_errors
error_reporting( error_reporting() | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE );
error_reporting( error_reporting() | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_USER_DEPRECATED );

set_error_handler( 'error_handler' );

Expand Down

0 comments on commit 4ee0da6

Please sign in to comment.