diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-05-28 14:22:09 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-28 18:10:13 +0200 |
commit | 26c4a4726e5fd6d682b75e1234cd780dd1d0b1c1 (patch) | |
tree | 5e7c484d30b8feb7b624d48655907fcdd6892873 /index.php | |
parent | 5a54560adc80cd3bc0da77b95ca740353fa5c680 (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.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"; |