The latest version of Drush gives me this error, but only with Drupal 8 sites:
PHP's 'magic_quotes_gpc' and 'magic_quotes_runtime' settings are not supported and must be disabled.Drush command terminated abnormally due to an unrecoverable error.
I'm using MAMP, so I turned all magic quote related stuff off in /Applications/MAMP/bin/php/php5.3.6/conf/php.ini, and restarted the servers. When loading a phpinfo() file in the browser, all magic-quote-related directives are off. However, when running
echo "<?php phpinfo();" | php | grep magic_quotes_gpc
on the command line, it tells the they are still on.
Upon further investigation, I noticed that from the command line, php was looking for its php.ini file in /etc/, so I needed to link the two:
mv /etc/php.ini /etc/php.ini.backup
ln -s /Applications/MAMP/bin/php/php5.3.6/conf/php.ini /etc/php.ini
Now, after restaring the servers, drush works fine.