diff --git a/share/scripts/libyate.php b/share/scripts/libyate.php index 87e0ffe2..7b18a7c6 100644 --- a/share/scripts/libyate.php +++ b/share/scripts/libyate.php @@ -532,7 +532,9 @@ class Yate /* Internal error handler callback - output plain text to stderr */ function _yate_error_handler($errno, $errstr, $errfile, $errline) { - $str = " [$errno] $errstr in $errfile line $errline\n"; + if (0 === error_reporting()) + return; + $str = "[$errno] $errstr in $errfile line $errline\n"; switch ($errno) { case E_USER_ERROR: Yate::Output("PHP fatal: $str");