[HttpKernel] added error display suppression when using the ErrorHandler (if not, errors are displayed twice, refs #6254)
This commit is contained in:
parent
3d564ee823
commit
cb319acb11
@ -58,6 +58,7 @@ class ErrorHandler
|
||||
$handler = new static();
|
||||
$handler->setLevel($level);
|
||||
|
||||
ini_set('display_errors', 0);
|
||||
set_error_handler(array($handler, 'handle'));
|
||||
register_shutdown_function(array($handler, 'handleFatal'));
|
||||
$handler->reservedMemory = str_repeat('x', 10240);
|
||||
|
Reference in New Issue
Block a user