Skip to content

Commit 538b615

Browse files
committed
Fix #109. drush status's 'PHP configuration' should reflect the setting of the DRUSH_INI environment variable.
1 parent 67372ba commit 538b615

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands/core/core.drush.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,11 @@ function drush_core_config_load($headers = TRUE) {
758758
function _drush_core_config_php_ini_files() {
759759
$ini_files = array();
760760
$ini_files[] = php_ini_loaded_file();
761+
if ($drush_ini = getenv('DRUSH_INI')) {
762+
if (file_exists($drush_ini)) {
763+
$ini_files[] = $drush_ini;
764+
}
765+
}
761766
foreach (array(DRUSH_BASE_PATH, '/etc/drush', drush_server_home() . '/.drush') as $ini_dir) {
762767
if (file_exists($ini_dir . "/php.ini")) {
763768
$ini_files[] = realpath($ini_dir . "/php.ini");

0 commit comments

Comments
 (0)