Warn users about having scream enabled, fixes #543
parent
17370e3812
commit
5c644552b2
|
@ -37,6 +37,11 @@ class ErrorHandler
|
||||||
return;
|
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);
|
throw new \ErrorException($message, 0, $level, $file, $line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue