[HttpKernel] added error display suppression when using the ErrorHandler (if not, errors are displayed twice, refs #6254)

This commit is contained in:
Fabien Potencier 2013-02-15 08:54:09 +01:00
parent 3d564ee823
commit cb319acb11

View File

@ -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);