Under PHP 5.3.6-6:
Deprecated function: Assigning the return value of new by reference is deprecated in [error]
_drush_add_commandfiles() (line 941 of /usr/local/bin/drush-folder/includes/command.inc).This stops the execution of drush altogether.
I realise this can be ignored by turning off deprecation errors but I'm logging it as it should be fixed.
Comments
Comment #1
moshe weitzman commentedthat line does nothing unusual in 7.x-4.x or master. please retry with one of those.
Comment #2
rerooting commentedI can confirm I am having this issue as well, with the latest stable drush codebase.
drush status outputs this on another D7 site in the same local environment:
However in another install, that had had drush working fine until I installed CiviCRM, I am getting this output for 'drush status':
I am going to try a few things to fix this. CiviCRM does not seem to be the issue, necessarily (tried uninstalling it and removing the civicrm.settings.php file and the error persists.)
Most importantly, I need to move drush from the document root to /opt or /usr/share as I should have a while ago! I may also try installing the ubuntu package.
Comment #3
mrl586 commentedI have same problem.
Comment #4
Slovak commentedIn my case it was a CiviCRM issue fixed by the patch.
http://issues.civicrm.org/jira/browse/CRM-8371
Comment #5
pimok3000 commentedThe patch solves the problem!!!
Thank you very much for the hint.
Comment #6
torrance123 commentedI am also running civicrm, so I presume problem lies there. The error message pointed me to the wrong module as the culprit.
Marking as closed.
Comment #7
Russell Mann commentedThank you patchers!