summaryrefslogtreecommitdiffstats
path: root/application/errors/error_php.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/errors/error_php.php')
-rw-r--r--application/errors/error_php.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/application/errors/error_php.php b/application/errors/error_php.php
index f085c2037..cf6cb9fac 100644
--- a/application/errors/error_php.php
+++ b/application/errors/error_php.php
@@ -6,5 +6,16 @@
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
-
+<?php if(defined('SHOW_ERROR_BACKTRACE') && SHOW_ERROR_BACKTRACE === TRUE): ?>
+ <p>Backtrace: </p>
+ <?php foreach(debug_backtrace() as $error): ?>
+ <?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?>
+ <p>
+ File: <?php echo $error['file'] ?><br />
+ Line: <?php echo $error['line'] ?><br />
+ Function: <?php echo $error['function'] ?>
+ </p>
+ <? endif ?>
+ <? endforeach ?></p>
+<?php endif ?>
</div> \ No newline at end of file