diff options
author | Timothy Warren <tim@timshomepage.net> | 2011-10-18 13:23:23 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2011-10-18 13:23:23 +0200 |
commit | 66bd5899295bcd93014e9f36468b57bfe855c780 (patch) | |
tree | d5842c71a96fa9c6fbc7155b247ba943a8d5d61d /application/errors | |
parent | 112e2bebadc0abe346bb1dffddc150421ebb0862 (diff) | |
parent | bf18178de31418d3a8202a82a34e24bb7cb84579 (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'application/errors')
-rw-r--r-- | application/errors/error_php.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/application/errors/error_php.php b/application/errors/error_php.php index f085c2037..514e477e8 100644 --- a/application/errors/error_php.php +++ b/application/errors/error_php.php @@ -7,4 +7,21 @@ <p>Filename: <?php echo $filepath; ?></p> <p>Line Number: <?php echo $line; ?></p> +<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?> + + <p>Backtrace: </p> + <?php foreach(debug_backtrace() as $error): ?> + + <?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?> + <p style="margin-left:10px"> + 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 |