diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 32f47fa..03e8cf0 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -573,7 +573,7 @@ function drupal_settings_initialize() {
   global $base_url, $base_path, $base_root, $script_path;
 
   // Export these settings.php variables to the global namespace.
-  global $databases, $cookie_domain, $conf, $db_prefix, $drupal_hash_salt, $base_secure_url, $base_insecure_url, $config_directories;
+  global $cookie_domain, $conf, $base_secure_url, $base_insecure_url;
   $conf = array();
 
   // Make conf_path() available as local variable in settings.php.
@@ -1513,7 +1513,7 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia
  * @see hook_watchdog()
  */
 function watchdog($type, $message, array $variables = NULL, $severity = WATCHDOG_NOTICE, $link = NULL) {
-  global $user, $base_root;
+  global $user;
 
   static $in_error_state = FALSE;
 
@@ -2274,7 +2274,7 @@ function drupal_valid_test_ua($new_prefix = NULL) {
  *   The simpletest prefix.
  */
 function _drupal_load_test_overrides($test_prefix) {
-  global $conf, $config_directories;
+  global $config_directories;
 
   // Do not use the parent site's config directories. Use only the child site's.
   // @see Drupal\simpletest\TestBase::prepareConfigDirectories()
@@ -2983,7 +2983,7 @@ function _drupal_shutdown_function() {
   chdir(DRUPAL_ROOT);
 
   try {
-    while (list($key, $callback) = each($callbacks)) {
+    foreach ($callbacks as $callback) {
       call_user_func_array($callback['callback'], $callback['arguments']);
     }
   }
