From fc2cfa65c5e0d22fb1711827009064bc1909c1c6 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 22 Feb 2010 11:45:29 +0100 Subject: [PATCH] Set error return code when PlPage::kill() is called from CLI. Signed-off-by: Florent Bruneau --- classes/plpage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/plpage.php b/classes/plpage.php index ab6ce15..875981e 100644 --- a/classes/plpage.php +++ b/classes/plpage.php @@ -249,7 +249,7 @@ abstract class PlPage extends Smarty // PHP is used on command line... do not run the whole page stuff. if (php_sapi_name() == 'cli') { echo $msg . "\n"; - exit; + exit(-1); } global $platal; -- 2.1.4