When running drush status, 'PHP configuration' shows the PHP configuration files and drush overrides currently in use. When I specify a custom file path using the DRUSH_INI environment variable, the file is not listed under 'PHP configuration' making it difficult to detect if it was actually respected (it was).

Here's the sample output where I placed drush.ini in ~/.drush and then ran drush status:
PHP configuration : /usr/local/lib/php.ini /home/stewart.adam/.drush/drush.ini

Here's what happens when I run export DRUSH_INI=~/myfile.ini;drush status:
PHP configuration : /usr/local/lib/php.ini

Comments

greg.1.anderson’s picture

Version: 7.x-5.9 » 8.x-6.x-dev
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.

stewart.adam’s picture

Status: Closed (won't fix) » Closed (duplicate)