From 22793139ce2aaa584f3c4ffe2623ce009b91fefb Mon Sep 17 00:00:00 2001 From: CeBe Date: Thu, 20 Jun 2013 22:31:36 +0200 Subject: [PATCH] Console application has to exit with exitCode fixes #562 --- apps/basic/yii | 3 ++- framework/yii/yii | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/basic/yii b/apps/basic/yii index be27cac..c874ce0 100755 --- a/apps/basic/yii +++ b/apps/basic/yii @@ -19,4 +19,5 @@ require(__DIR__ . '/vendor/autoload.php'); $config = require(__DIR__ . '/config/console.php'); $application = new yii\console\Application($config); -return $application->run(); +$exitCode = $application->run(); +exit($exitCode); diff --git a/framework/yii/yii b/framework/yii/yii index 54fa9de..ebba1a6 100755 --- a/framework/yii/yii +++ b/framework/yii/yii @@ -20,4 +20,5 @@ $application = new yii\console\Application(array( 'basePath' => __DIR__ . '/console', 'controllerPath' => '@yii/console/controllers', )); -$application->run(); \ No newline at end of file +$exitCode = $application->run(); +exit($exitCode);