From 26c4a4726e5fd6d682b75e1234cd780dd1d0b1c1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 28 May 2015 14:22:09 +0200 Subject: Always display exceptions when running via CLI Signed-off-by: Florian Pritz --- index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.php') 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"; -- cgit v1.2.3-24-g4f1b