Revert "[Console] ensure exit code between 0-254"

This reverts commit 6b9180a23d.
This commit is contained in:
Fabien Potencier 2013-06-11 09:13:58 +02:00
parent 82e555263f
commit 84867b78f8
1 changed files with 4 additions and 2 deletions

View File

@ -126,9 +126,11 @@ class Application
}
if ($this->autoExit) {
// ensure exit code is between 0-254 (255 is reserved by PHP and should not be used)
if ($statusCode > 255) {
$statusCode = 255;
}
// @codeCoverageIgnoreStart
exit(max(0, min(254, $statusCode)));
exit($statusCode);
// @codeCoverageIgnoreEnd
}