summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoshe weitzman2008-07-16 00:25:01 (GMT)
committermoshe weitzman2008-07-16 00:25:01 (GMT)
commit7c79a90e7b025e96002d6ab41ce0be7b3276d520 (patch)
treec52f22240a6e9791aba7c7168e138f937591bfb5
parent15d807dc8e5e18cf1f83a08edd43f2c6147584d5 (diff)
#228746 by dman. Devel backtrace still goes noisy when a @suppressed warning is encountered.5.x-0.4
-rw-r--r--devel.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/devel.module b/devel.module
index 7355c8a..86c8398 100644
--- a/devel.module
+++ b/devel.module
@@ -287,6 +287,9 @@ function has_krumo() {
}
function backtrace_error_handler($errno, $message, $filename, $line) {
+ // Don't respond to the error if it was suppressed with a '@'
+ if (error_reporting() == 0) return;
+
if ($errno & (E_ALL ^ E_NOTICE)) {
$types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning');
$entry = $types[$errno] .': '. $message .' in '. $filename .' on line '. $line .'.';