[BUGFIX] Fail with exit code for fatal errors during boot 23/47423/3
authorHelmut Hummel <info@helhum.io>
Sun, 27 Mar 2016 19:38:37 +0000 (21:38 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 30 Mar 2016 19:45:18 +0000 (21:45 +0200)
commit5ea953783314fa3c2afe47435966e907566f0a86
tree9a8aff8417b0ef992d77e1320506598679d8c73c
parentd04862e5f71791825e0eb3280a697dc4baa7c9df
[BUGFIX] Fail with exit code for fatal errors during boot

Especially for CI environments it is crucial that TYPO3
does not exit cleanly when a fatal error occurs.

Change from die (which exits with return code 0) to exit(1)
and send a http error code as well (in web requests)

Releases: master, 7.6
Resolves: #75280
Change-Id: I473de98366a5ea3629d968e2c1600f241b9e73a1
Reviewed-on: https://review.typo3.org/47423
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Build/FunctionalTestsBootstrap.php
typo3/sysext/core/Build/UnitTestsBootstrap.php
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php