Project

General

Profile

Actions

Bug #44118

closed

Debug exception handler sets no exit code

Added by Christian Weiske over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-12-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Gerrit Code Review over 11 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

Actions #2

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17240

Actions #3

Updated by Christian Weiske about 11 years ago

Steps to reproduce:

  1. set a wrong database password in typo3conf/LocalConfiguration.php
  2. Enable debug exception handler:
    $TYPO3_CONF_VARS['SYS']['displayErrors'] = 2;
    $TYPO3_CONF_VARS['SYS']['devIPmask'] = '*';
    
  3. Run $ ./typo3/cli_dispatch.phpsh phpunit; echo "exit code: $?"
  4. You will get an exit code of 0
  5. If you disable the exception handler, you get an exit code of 1.
Actions #4

Updated by Gerrit Code Review almost 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

Actions #5

Updated by Gerrit Code Review almost 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

Actions #6

Updated by Gerrit Code Review almost 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

Actions #7

Updated by Christian Weiske almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF