Skip to content
Snippets Groups Projects
Commit 29017330 authored by ale's avatar ale
Browse files

Fix warning handler?

parent 0a8166e4
No related branches found
No related tags found
1 merge request!209Add the memcached plugin (object caching)
......@@ -187,11 +187,10 @@ if (array_key_exists('debug_cookie_name', $noblogs_config) &&
set_error_handler(function($severity, $message, $file, $line) {
if ($severity & (E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE)) {
$ex = new WarningWithStacktrace($message, 0, $severity, $file, $line);
echo "\n" . $ex . "\n\n";
error_log("\n" . $ex. "\n");
return true;
} else {
throw new ErrorException($message, 0, $severity, $file, $line);
}
}
return false;
});
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment