summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-28 14:22:09 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-28 18:10:13 +0200
commit26c4a4726e5fd6d682b75e1234cd780dd1d0b1c1 (patch)
tree5e7c484d30b8feb7b624d48655907fcdd6892873 /index.php
parent5a54560adc80cd3bc0da77b95ca740353fa5c680 (diff)
Always display exceptions when running via CLI
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index b9bc09709..9f68db123 100644
--- a/index.php
+++ b/index.php
@@ -273,6 +273,9 @@ function _actual_exception_handler($ex)
_log_exception($ex);
$display_errors = in_array(strtolower(ini_get('display_errors')), array('1', 'on', 'true', 'stdout'));
+ if (php_sapi_name() === 'cli' OR defined('STDIN')) {
+ $display_errors = true;
+ }
$GLOBALS["is_error_page"] = true;
$heading = "Internal Server Error";