Commit 0808c2a4 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #68 in ZP/z-push from...

Merge pull request #68 in ZP/z-push from bugfix/ZP-711-zpush_fatal_handler-reports-PHP-Strict-in-z-push-error.log to develop

* commit 'caadef2b':
  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.
parents aafbbdfa caadef2b
...@@ -350,8 +350,8 @@ function zpush_fatal_handler() { ...@@ -350,8 +350,8 @@ function zpush_fatal_handler() {
$errline = $error["line"]; $errline = $error["line"];
$errstr = $error["message"]; $errstr = $error["message"];
// do NOT log PHP Notice, Warning or Deprecated as FATAL // do NOT log PHP Notice, Warning, Deprecated or Strict as FATAL
if ($errno & ~(E_NOTICE|E_WARNING|E_DEPRECATED)) { 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)); 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