From: Brion Vibber Date: Sun, 26 Jun 2005 18:50:21 +0000 (+0000) Subject: Make sure we die with nonzero return code for command-line scripts X-Git-Tag: 1.5.0beta2~197 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=d8066dc25173e16ae9b1ac8fc1132a68b2992a2d;p=lhc%2Fweb%2Fwiklou.git Make sure we die with nonzero return code for command-line scripts --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index d310e2749f..71163d3e46 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -431,7 +431,8 @@ function wfDebugDieBacktrace( $msg = '' ) { $msg .= "\n

Backtrace:

\n$backtrace"; } } - die( $msg ); + echo $msg; + die( -1 ); } function wfBacktrace() {