diff options
author | Urban Müller | 2007-07-02 15:53:51 +0000 |
---|---|---|
committer | Urban Müller | 2007-07-02 15:53:51 +0000 |
commit | 43a2a17959a4ed185c89b2d9c1a990a83d02d54e (patch) | |
tree | ce44eb5d47662ef36650c66bbfc989ce19fb5472 /it.class | |
parent | f036b5e605e05d75ec86d0f6c12c4560d7b6dd6a (diff) | |
download | itools-43a2a17959a4ed185c89b2d9c1a990a83d02d54e.tar.gz itools-43a2a17959a4ed185c89b2d9c1a990a83d02d54e.tar.bz2 itools-43a2a17959a4ed185c89b2d9c1a990a83d02d54e.zip |
show long stuff last
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -118,9 +118,12 @@ function error($p = array(), $body = "", $to = "") $title="Error in $url"; if (memory_get_usage() < 50000000) - $stack = "\nTrace: " . it_debug::backtrace() . "\n\nStack:\n" . print_r(debug_backtrace(), true); + { + $trace = "\n\nTrace: " . it_debug::backtrace(); + $stack = "\n\nStack:\n" . print_r(debug_backtrace(), true); + } - $body .= "\nUrl: $url\n\n\$_REQUEST: ".print_r($_REQUEST, true) . $stack . "\n\$_SERVER: " . print_r($_SERVER, true); + $body .= "\nUrl: $url$trace\n\n\$_REQUEST: ".print_r($_REQUEST, true) . "\n\$_SERVER: " . print_r($_SERVER, true) . $stack; if (!ereg('live', $GLOBALS['ULTRASERVERTYPE'])) { |