Hi there,
Since upgrading to 5.9, I keep coming across the following error:
user@server [/]# drush st
The following restricted PHP modes have non-empty values: [error]
magic_quotes_gpc and magic_quotes_runtime. This configuration is
incompatible with drush. Please check your configuration settings in
/path/to/php.ini or in your drush.ini file; see
examples/example.drush.ini for details.
Drupal version : 7.22
Site URI : http://default
Database driver : mysql
Database hostname : server
Database username : username
Database name : database
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : theme
Administration theme : seven
PHP configuration : /path/to/php.ini /path/to/drush.ini
Drush version : 5.9
Drush configuration :
Drupal root : /path/to/public_html
Site path : sites/default
File directory path : sites/default/files
Private file directory path : /path/to/private
Temporary file directory path : /path/to/temp
The PHP version of this server is 5.2.17. I tried to eradicate the notice by explicitly defining the magic_quotes values in php.ini as well as drush.ini. Restarted Apache to no avail.
I ended up hacking the check out of environment.inc however I did notice that magic_quotes have been removed from the latest stable version of PHP (5.4.0). It seems that this error (notice?) is going to come up a lot in the future, the more people upgrade to 5.4.0. How useful is this check still? Could anything be built in so it no longer checks for magic_quotes from PHP 5.3.0 onwards (where it has been deprecated)?
S.
Comments
Comment #1
xmacinfoI have the same error on a 5.9 install upgraded with “pear upgrade drush/drush”.
On my Mac Drush uses the PHP 5.3.20 php.ini file.
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commented#1748228: Error in the PHP config setting of magic_quotes_gpc prevents diagnosis of the problem through drush core-status fixed this in the 8.x-6.x branch.
Comment #3
greg.1.anderson CreditAttribution: greg.1.anderson commentedClosing as a duplicate.