From 7d916647e1b82fcc8a17b68d3ae0615af42f53e0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 13 May 2016 18:24:08 +0200 Subject: Get baseconfig ready for modularization --- inc/util.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'inc/util.inc.php') diff --git a/inc/util.inc.php b/inc/util.inc.php index 5eed3ddc..c0b77f96 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -19,6 +19,19 @@ class Util Header('Content-Type: text/plain; charset=utf-8'); echo "--------------------\nFlagrant system error:\n$message\n--------------------\n\n"; if (defined('CONFIG_DEBUG') && CONFIG_DEBUG) { + global $SLX_ERRORS; +/* + 'errno' => $errno, + 'errstr' => $errstr, + 'errfile' => $errfile, + 'errline' => $errline, + */ + if (!empty($SLX_ERRORS)) { + foreach ($SLX_ERRORS as $error) { + echo "{$error['errstr']} ({$error['errfile']}:{$error['errline']}\n"; + } + echo "--------------------\n"; + } debug_print_backtrace(); echo "\n\nSome variables for your entertainment:\n"; print_r($GLOBALS); -- cgit v1.2.3-55-g7522