summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class5
1 files changed, 4 insertions, 1 deletions
diff --git a/it.class b/it.class
index 0819937..832380a 100644
--- a/it.class
+++ b/it.class
@@ -117,7 +117,10 @@ function error($p = array(), $body = "", $to = "")
if (!$title)
$title="Error in $url";
- $body .= "\nUrl: $url\n\n\$_REQUEST: ".print_r($_REQUEST, true). "\nTrace: " . it_debug::backtrace() . "\nStack:\n" . print_r(debug_backtrace(), true) . "\n\$_SERVER: " . print_r($_SERVER, true);
+ if (memory_get_usage() < 50000000)
+ $stack = "\nTrace: " . it_debug::backtrace() . "\nStack:\n" . print_r(debug_backtrace(), true);
+
+ $body .= "\nUrl: $url\n\n\$_REQUEST: ".print_r($_REQUEST, true) . $stack . "\n\$_SERVER: " . print_r($_SERVER, true);
if (!ereg('live', $GLOBALS['ULTRASERVERTYPE']))
{