From 84867b78f86c7b162be37324ef8a9a84ef572329 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 11 Jun 2013 09:13:58 +0200 Subject: [PATCH] Revert "[Console] ensure exit code between 0-254" This reverts commit 6b9180a23ded06648ea8c79251e96ce87dd5c94f. --- src/Symfony/Component/Console/Application.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 2c7d3de736..d4ad03a02f 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -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 }