]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- optimize
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Jul 2006 14:35:15 +0000 (14:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-errorhandler.patch -> 1.1

eventum-errorhandler.patch [new file with mode: 0644]

diff --git a/eventum-errorhandler.patch b/eventum-errorhandler.patch
new file mode 100644 (file)
index 0000000..3a4c72b
--- /dev/null
@@ -0,0 +1,22 @@
+print_r $return parameter appeared in 4.3.0, so we can skip the ob capture stuff
+
+--- eventum-1.7.1/include/class.error_handler.php~     2006-07-15 21:14:46.624810456 +0300
++++ eventum-1.7.1/include/class.error_handler.php      2006-07-16 17:34:08.494895266 +0300
+@@ -105,16 +105,12 @@
+         // only try to include the backtrace if we are on PHP 4.3.0 or later
+         if (version_compare(phpversion(), "4.3.0", ">=")) {
+             $msg .= "\n\nA backtrace is available:\n\n";
+-            ob_start();
+             $backtrace = debug_backtrace();
+             // remove the two entries related to the error handling stuff itself
+             array_shift($backtrace);
+             array_shift($backtrace);
+             // now we can print it out
+-            print_r($backtrace);
+-            $contents = ob_get_contents();
+-            $msg .= $contents;
+-            ob_end_clean();
++            $msg .= print_r($backtrace, 1);
+         }
+         // avoid triggering an email notification about a query that 
+         // was bigger than max_allowed_packet (usually 16 megs on 3.23 
This page took 0.045588 seconds and 4 git commands to generate.