Bug #44118
closedDebug exception handler sets no exit code
100%
Description
When the debug exception handler is active, no exit code is set - which means that I cannot determine if e.g. a cli_dispatch.phpsh task failed.
The production exception handler has a die(1);
which is missing in the debug exception handler.
This happens with 6.0 and 4.5.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17240
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17240
Updated by Christian Weiske almost 12 years ago
Steps to reproduce:
- set a wrong database password in
typo3conf/LocalConfiguration.php
- Enable debug exception handler:
$TYPO3_CONF_VARS['SYS']['displayErrors'] = 2; $TYPO3_CONF_VARS['SYS']['devIPmask'] = '*';
- Run
$ ./typo3/cli_dispatch.phpsh phpunit; echo "exit code: $?"
- You will get an exit code of
0
- If you disable the exception handler, you get an exit code of
1
.
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17240
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22630
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/22631
Updated by Christian Weiske over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6a213e1822a3191a0d0bf4f28d2211228a010f40.