Register globals detection
| Project: | Drush |
| Version: | All-Versions-2.1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Not sure if this should be a support or a feature request.
I have been using hostgator for a host and have shell access, thus have been using drush without any significant issues.
However, register_globals is turned on by default, and I have overidden the default by making a php.ini file in my home directory with register_globals = Off in it. Now whenever I run drush updatedb it gives me the warning message that register_globals is on, although when I run update.php I don't get that error. Just a small thing. Thus it seems to be taking it from the default php.ini file, not the site (perhaps server) specific php.ini file. (I also see register_globals is deactivated when I run phpinfo() for an additional check.)
Is there any way to have it get the settings set by a site/server specific php.ini file when using the updatedb command?

#1
you can pass php.ini values on the command line i use a bash alias for this, but you could type it out every time if you want:
alias drush='php -d error_reporting=E_ALL ~/contributions/modules/drush/drush.php'
or you can use drush status command and edit the php.ini that drush is really using. if you don't have acesss to that, then you have to use command line as i have shown.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.