Commit caadef2b authored by Ralf Becker's avatar Ralf Becker

ZP-711 zpush_fatal_handler reports PHP Notice & Warning as FATAL in...

ZP-711 zpush_fatal_handler reports PHP Notice & Warning as FATAL in z-plush(-error).log. Released under the Affero GNU General Public License (AGPL) version 3.
parent d8979595
......@@ -350,8 +350,8 @@ function zpush_fatal_handler() {
$errline = $error["line"];
$errstr = $error["message"];
// do NOT log PHP Notice, Warning or Deprecated as FATAL
if ($errno & ~(E_NOTICE|E_WARNING|E_DEPRECATED)) {
// do NOT log PHP Notice, Warning, Deprecated or Strict as FATAL
if ($errno & ~(E_NOTICE|E_WARNING|E_DEPRECATED|E_STRICT)) {
ZLog::Write(LOGLEVEL_FATAL, sprintf("Fatal error: %s:%d - %s (%s)", $errfile, $errline, $errstr, $errno));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment