function _drupal_bootstrap_configuration

Sets up the script environment and loads settings.php.

1 call to _drupal_bootstrap_configuration()
drupal_bootstrap in drupal/core/includes/bootstrap.inc
Ensures Drupal is bootstrapped to the specified phase.

File

drupal/core/includes/bootstrap.inc, line 1981
Functions that need to be loaded on every Drupal request.

Code

function _drupal_bootstrap_configuration() {
  drupal_environment_initialize();

  // Initialize the configuration, including variables from settings.php.
  drupal_settings_initialize();

  // Make sure we are using the test database prefix in child Drupal sites.
  _drupal_initialize_db_test_prefix();

  // Activate the class loader.
  drupal_classloader();

  // Start a page timer:
  Timer::start('page');

  // Detect string handling method.
  Unicode::check();

  // Load the procedural configuration system helper functions.
  require_once __DIR__ . '/config.inc';

  // Set the Drupal custom error handler. (requires config())
  set_error_handler('_drupal_error_handler');
  set_exception_handler('_drupal_exception_handler');

  // Redirect the user to the installation script if Drupal has not been
  // installed yet (i.e., if no $databases array has been defined in the
  // settings.php file) and we are not already installing.
  if (empty($GLOBALS['databases']) && !drupal_installation_attempted()) {
    include_once __DIR__ . '/install.inc';
    install_goto('core/install.php');
  }
}