[Console] fixed status code when it is > 255

This commit is contained in:
Tom Van Looy 2010-10-12 12:57:22 +02:00 committed by Fabien Potencier
parent c39635680f
commit 44f54c2578

View File

@ -123,6 +123,9 @@ class Application
}
if ($this->autoExit) {
if ($statusCode > 255) {
$statusCode = 255;
}
// @codeCoverageIgnoreStart
exit($statusCode);
// @codeCoverageIgnoreEnd