Index: src/wp-includes/default-constants.php
===================================================================
--- src/wp-includes/default-constants.php	(revision 45192)
+++ src/wp-includes/default-constants.php	(working copy)
@@ -75,6 +75,8 @@
 	// Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
 	if ( ! defined( 'WP_DEBUG' ) ) {
 		define( 'WP_DEBUG', false );
+	} elseif ( WP_DEBUG && ! defined( 'WP_DISABLE_FATAL_ERROR_HANDLER' ) ) {
+		define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
 	}
 
 	// Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php use the globally configured setting for
