function _drush_core_config_php_ini_files

8.0.x core.drush.inc _drush_core_config_php_ini_files()
6.x core.drush.inc _drush_core_config_php_ini_files()
7.x core.drush.inc _drush_core_config_php_ini_files()
4.x core.drush.inc _drush_core_config_php_ini_files()
5.x core.drush.inc _drush_core_config_php_ini_files()
master core.drush.inc _drush_core_config_php_ini_files()
2 calls to _drush_core_config_php_ini_files()

File

commands/core/core.drush.inc, line 752
Core drush commands.

Code

function _drush_core_config_php_ini_files() {
  $ini_files = array();
  $ini_files[] = php_ini_loaded_file();
  if ($drush_ini = getenv('DRUSH_INI')) {
    if (file_exists($drush_ini)) {
      $ini_files[] = $drush_ini;
    }
  }
  foreach (array(DRUSH_BASE_PATH, '/etc/drush', drush_server_home() . '/.drush') as $ini_dir) {
    if (file_exists($ini_dir . "/php.ini")) {
      $ini_files[] = realpath($ini_dir . "/php.ini");
    }
    if (file_exists($ini_dir . "/drush.ini")) {
      $ini_files[] = realpath($ini_dir . "/drush.ini");
    }
  }
  return $ini_files;
}