Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.442
diff -u -p -r1.442 system.install
--- modules/system/system.install	13 Jan 2010 06:15:39 -0000	1.442
+++ modules/system/system.install	22 Jan 2010 15:09:00 -0000
@@ -108,6 +108,22 @@ function system_requirements($phase) {
     $requirements['pdo']['description'] = $t('Your server does not have the PHP PDO extension enabled. See the <a href="@system_requirements">system requirements page</a> for more information.', array('@system_requirements' => 'http://drupal.org/requirements'));
   }
 
+  // Test PHP error reporting settings
+  $php_error_reporting = variable_get('error_level');
+  $requirements['php_error_reporting'] = array(
+    'title' => $t('PHP error reporting'),
+  );
+  // check whether error reporting is either not set yet (default after install)
+  // or set to any value except 'none'
+  if ($php_error_reporting == NULL || $php_error_reporting == '1' || $php_error_reporting == '2') {
+    $requirements['php_error_reporting']['value'] = $t('Enabled');
+    $requirements['php_error_reporting']['severity'] = REQUIREMENT_WARNING;
+    $requirements['php_error_reporting']['description'] = $t('PHP error reporting is enabled. It is recommended that sites running on production environments do not display any errors. You can change this setting from the <a href="@module">Logging and errors</a> page.', array('@module' => '/admin/config/development/logging'));
+  }
+  else {
+    $requirements['php_error_reporting']['value'] = $t('Disabled');
+  }
+
   // Test PHP memory_limit
   $memory_limit = ini_get('memory_limit');
   $requirements['php_memory_limit'] = array(
