diff options
author | Timothy Warren <tim@timshomepage.net> | 2011-10-13 16:23:44 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2011-10-13 16:23:44 +0200 |
commit | 2873ac64f1476551cc546f30ec6187e580cc8155 (patch) | |
tree | f8dff37f966193a9ba9e9bdd419c4c010ca0d119 /application/errors/error_php.php | |
parent | 10266cce7b1c7a234b952cb6475591c2e9d76edf (diff) |
Added simple backtrace to php error file
Diffstat (limited to 'application/errors/error_php.php')
-rw-r--r-- | application/errors/error_php.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/application/errors/error_php.php b/application/errors/error_php.php index f085c2037..279556a98 100644 --- a/application/errors/error_php.php +++ b/application/errors/error_php.php @@ -6,5 +6,14 @@ <p>Message: <?php echo $message; ?></p> <p>Filename: <?php echo $filepath; ?></p> <p>Line Number: <?php echo $line; ?></p> - +<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> </div>
\ No newline at end of file |