1
0
Fork 0

Fix error handling support, fixes #4833

pull/4834/head
Jordi Boggiano 2016-01-26 15:04:00 +00:00
parent 594cf658da
commit 4e00635298
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ class ErrorHandler
*/
public static function handle($level, $message, $file, $line)
{
// respect error_reporting being disabled
if (!error_reporting()) {
// error code is not included in error_reporting
if (!(error_reporting() & $level)) {
return;
}