summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php13
1 files changed, 13 insertions, 0 deletions
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);