From 43a2a17959a4ed185c89b2d9c1a990a83d02d54e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 2 Jul 2007 15:53:51 +0000 Subject: show long stuff last --- it.class | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 78161f9..f30b5f8 100644 --- a/it.class +++ b/it.class @@ -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'])) { -- cgit v1.2.3