1 print_r $return parameter appeared in 4.3.0, so we can skip the ob capture stuff
3 --- eventum-1.7.1/include/class.error_handler.php~ 2006-07-15 21:14:46.624810456 +0300
4 +++ eventum-1.7.1/include/class.error_handler.php 2006-07-16 17:34:08.494895266 +0300
6 // only try to include the backtrace if we are on PHP 4.3.0 or later
7 if (version_compare(phpversion(), "4.3.0", ">=")) {
8 $msg .= "\n\nA backtrace is available:\n\n";
10 $backtrace = debug_backtrace();
11 // remove the two entries related to the error handling stuff itself
12 array_shift($backtrace);
13 array_shift($backtrace);
14 // now we can print it out
15 - print_r($backtrace);
16 - $contents = ob_get_contents();
19 + $msg .= print_r($backtrace, 1);
21 // avoid triggering an email notification about a query that
22 // was bigger than max_allowed_packet (usually 16 megs on 3.23