Index: wp-login.php
===================================================================
--- wp-login.php	(revision 37189)
+++ wp-login.php	(working copy)
@@ -387,6 +387,12 @@
 
 nocache_headers();
 
+if ( headers_sent() ) {
+
+	printf( __( '<strong>ERROR</strong>: It seems there is a syntax error in your <code>wp-config.php</code> file. You can read <a href="%s" target="_blank">this article</a> to find a solution.' ), esc_url( 'http://codex.wordpress.org/Installing_WordPress#Common_Installation_Problems' ) );
+	exit;
+}
+
 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
 
 if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set
