A missing set of brackets has meant that it did not have the desired effect of masking out E_NOTICE notices.
Patch looks like:
--- common.inc-orig 2006-01-30 10:52:32.000000000 -0500
+++ common.inc 2006-01-30 10:51:22.000000000 -0500
@@ -338,7 +338,7 @@
* 2 = Log errors to database and to screen.
*/
function error_handler($errno, $message, $filename, $line, $variables) {
- if ($errno & E_ALL ^ E_NOTICE) {
+ 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 .'.';
Comments
Comment #1
Uwe Hermann commentedFixed in HEAD.
Comment #2
(not verified) commented