[BUGFIX] Delay error handler registration
The ErrorHandler is not be fully configured (missing logger) by the time the object is constructed, but the error handler is registered at that point. As errors may happen during construction of dependencies (again the logger) of the ErrorHandler, the error handler registration needs to be delayed in order to avoid usage of the error handler while dependencies are still being created. This may happen in case an exception occurs during creation of the ErrorHandler's logger instances. Resolves: #93279 Releases: master, 10.4, 9.5 Change-Id: I0ded490c35e61120e055f853accb10e16080ea1a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67440 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Classes/Core/Bootstrap.php 3 additions, 0 deletionstypo3/sysext/core/Classes/Core/Bootstrap.php
- typo3/sysext/core/Classes/Error/ErrorHandler.php 5 additions, 1 deletiontypo3/sysext/core/Classes/Error/ErrorHandler.php
- typo3/sysext/core/Classes/Error/ErrorHandlerInterface.php 3 additions, 0 deletionstypo3/sysext/core/Classes/Error/ErrorHandlerInterface.php
Please register or sign in to comment