-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error importing function definition for `BASH_FUNC_module' #4437
Comments
I think you are calling a global drush or something. instead of |
Thanks for the update. I'll run some more tests later. However, looking at the output of the |
@weitzman I'm getting this too, and yes I'm calling a global drush with a Edit: I guess in the 9.x version of the docs, it does say to use Drush Launcher instead. Why is 8.x shown by default then? |
Note that for some reason the bug doesn't appear in PHP8. Don't seem to be related to type of drush script. In both cases I installed drush via Composer. Steps:
Result in PHP7:
Result in PHP8:
Note that both drush executables are from But when I do this steps for PHP7:
Result in PHP7 is OK:
And for PHP8 drush v7 is not working (array problems). BTW. The path to composer is wrong in the docs: https://docs.drush.org/en/7.x/install/ |
I know this issue had been addressed on #2065, however that was for earlier versions of Drush, in particular for Drush 8. Now, when Drupal 9 has been released, which requires PHP 7.3 or higher, and according to the table:
on https://docs.drush.org/en/master/install, we need to get Drush 10 playing nice with Drupal 9 running on PHP 7.3 and higher.
I've tested Drush 10 on both PHP 7.3 and 7.4 and in both cases got the error. And since the other issue had been already closed for long time, I decided to open a new one.
Describe the bug
The
drush status
command is giving the following two lines error on top of the output:The whole output is:
Workaround
You can add
disable_functions = pcntl_exec
inphp.ini
to get rid of the error. However, in similar manner with #2065, I believe it should be addressed within the Drush context and without tampering with php.ini configuration file.Wanted to PR looking at 9e9fa51, however Drush 10 does not have the
includes/startup.inc
file:System Configuration
The text was updated successfully, but these errors were encountered: