summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
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";