1
0
Fork 0

Warn users about having scream enabled, fixes #543

pull/548/merge
Jordi Boggiano 2012-04-08 20:05:24 +02:00
parent 17370e3812
commit 5c644552b2
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ class ErrorHandler
return;
}
if (ini_get('xdebug.scream')) {
$message .= "\n\nWarning: You have xdebug.scream enabled, the warning above may be".
"\na legitimately suppressed error that you were not supposed to see.";
}
throw new \ErrorException($message, 0, $level, $file, $line);
}