[BUGFIX] Error handler registration accepts way too much PHP error types
authorMarcus Krause <marcus@t3sec.info>
Sat, 22 Sep 2012 12:21:58 +0000 (14:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Sep 2012 17:49:28 +0000 (19:49 +0200)
commit273ac85983ccbce2fb0db64905d0a8afe77bad47
tree78c2fc18d48239d927c275e2b648e32aad71e1e3
parentc60c0ead973b2aea70bb4bd6eb62253977aced09
[BUGFIX] Error handler registration accepts way too much PHP error types

Taken from http://php.net/manual/en/function.set-error-handler.php
set_error_handler has limitations for error types to process.

In detail E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING,
E_COMPILE_ERROR, E_COMPILE_WARNING cannot handled by an user defined
function.

This issue is about reflecting this in config_default settings and
in t3lib_error_ErrorHandler to make sure to process only error types
we can handle.

Change-Id: I908aa33c07a7de69095dce3e0d74d19134733231
Fixes: #31827
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/14934
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/config_default.php
t3lib/error/class.t3lib_error_errorhandler.php