8000 [HttpKernel] added error display suppression when using the ErrorHand… · symfony/symfony@cb319ac · GitHub
[go: up one dir, main page]

Skip to content

Commit cb319ac

Browse files
committed
[HttpKernel] added error display suppression when using the ErrorHandler (if not, errors are displayed twice, refs #6254)
1 parent 3d564ee commit cb319ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static function register($level = null)
5858
$handler = new static();
5959
$handler->setLevel($level);
6060

61+
ini_set('display_errors', 0);
6162
set_error_handler(array($handler, 'handle'));
6263
register_shutdown_function(array($handler, 'handleFatal'));
6364
$handler->reservedMemory = str_repeat('x', 10240);

0 commit comments

Comments
 (0)
0