]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-errorhandler.patch
- conditional dispelmagicquotes for the sake of performance for sane setups
[packages/eventum.git] / eventum-errorhandler.patch
1 print_r $return parameter appeared in 4.3.0, so we can skip the ob capture stuff
2
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
5 @@ -105,16 +105,12 @@
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";
9 -            ob_start();
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();
17 -            $msg .= $contents;
18 -            ob_end_clean();
19 +            $msg .= print_r($backtrace, 1);
20          }
21          // avoid triggering an email notification about a query that 
22          // was bigger than max_allowed_packet (usually 16 megs on 3.23 
This page took 0.060737 seconds and 3 git commands to generate.