symfony/symfony — pull request #8217 by everzet (2013-06-06 15:20:18+00:00)
Title: [Console] Ensure proper exit code on Exception

Fixes broken exit codes for console component.

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | 8183, 8202
| License | MIT

- Prevent negative and 0 exit code from being used on exception
- Prevent 255+ exit code from being used