Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Windows Installer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2011 at 16:42 UTC
Updated:
11 Sep 2013 at 05:28 UTC
Drush doesn't check for custom INI files in the Windows batch file, like it does in the shell script.
I added a simple if statement to the batch file drush.bat that checks to see if there is a Drush.ini file in the main drush install directory, and if found it uses it. This is not super elegant, but it worked for me, and allowed me to disable open_basedir restrictions for Drush, while leaving it in place in my main php.ini file.
IF EXIST "%~dp0drush.ini" (
@php.exe -c "%~dp0drush.ini" "%~dp0drush.php" %* --php="php.exe"
) ELSE (
@php.exe "%~dp0drush.php" %* --php="php.exe"
)
Comments
Comment #1
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this task to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.