[BUGFIX] Register the exception handler early in bootstrap 04/33704/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 10 Jul 2014 13:42:13 +0000 (15:42 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Sun, 16 Nov 2014 09:09:11 +0000 (10:09 +0100)
commitd065b5699237e7344db2c93b3a12ce0aac79897d
tree51f1702fabb5891eb50b2c3629028a04f80acf92
parenta10bcc5b1ede491b303261843700f5b5cd9734b9
[BUGFIX] Register the exception handler early in bootstrap

Currently registering the exception handler is done
after extensions are loaded to allow extensions to
modify configuration to override the exception handler
defined in LocalConfiguration or DefaultConfiguration.

Registering the exception handler so late has however
the drawback that exceptions throw before, lack proper
handling (and maybe in production even disclose more information
than needed).

Change that and register error handling much earlier
in the bootstrap so that exceptions thrown e.g. while
loading ext_localconf.php can show a proper stack trace
to give developers more useful information why the exception occurred.

To still allow extensions to override configuration,
we now remember the early exception and error handler classes
and potentially register a new exception handler after extensions
have been loaded.

Resolves: #60235
Releases: 6.2, master
Change-Id: I087173073ba75a54be14ca4f40f90c0e5304892d
Reviewed-on: http://review.typo3.org/33704
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Core/Bootstrap.php