function _drush_bootstrap_drush_validate

6.x bootstrap.inc _drush_bootstrap_drush_validate()
3.x environment.inc _drush_bootstrap_drush_validate()
4.x environment.inc _drush_bootstrap_drush_validate()
5.x bootstrap.inc _drush_bootstrap_drush_validate()

Validate that Drush is running in a suitable environment.

File

includes/bootstrap.inc, line 391
Drush bootstrapping code.

Code

function _drush_bootstrap_drush_validate() {
  // @todo _drush_environment_php_ini_checks() always returns TRUE.
  $return = _drush_environment_check_php_ini();
  if ($return !== TRUE) {
    return $return;
  }

  if (drush_environment_lib() === FALSE) {
    return FALSE;
  }

  if (drush_environment_table_lib() === FALSE) {
    return FALSE;
  }

  return TRUE;
}