Set error return code when PlPage::kill() is called from CLI.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 22 Feb 2010 10:45:29 +0000 (11:45 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 22 Feb 2010 10:45:29 +0000 (11:45 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plpage.php

index ab6ce15..875981e 100644 (file)
@@ -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;