-
-
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
Drush 8 warnings on PHP 8.1 #5196
Comments
I get these warnings:
(Never mind, these are fixed in 8.x dev) |
https://github.com/drush-ops/drush/blob/8.x/commands/core/drupal/batch_7.inc
|
PRs welcome |
function _drush_backend_batch_process($command = 'batch-process', $args, $options) { I think the change would need to be made in 3 files: commands/core/drupal/batch_7.inc:19 The only reference is in includes/batch.inc, which has the parameter defaults all set: function drush_backend_batch_process($command = 'batch-process', $args = array(), $options = array()) {
// Command line options to pass to the command.
$options['u'] = drush_user_get_class()->getCurrentUserAsSingle()->id();
drush_include_engine('drupal', 'batch');
_drush_backend_batch_process($command, $args, $options);
} |
I created a PR: #5286 |
Co-authored-by: mbomb007 <[email protected]>
There seem to be a few issues related to this incompatibility. I thought it had been fixed but maybe not. It's mostly causing a blockage on Drupal 7 sites using Drush 8 with PHP 8 on Pantheon. Very curious when this will be rolled out since PHP 7 is EOL and Drupal 7 is unable to run any higher version of Drush. |
Can we merge changes to the Drush8 branch? |
Fully agreed with Ivan - Drupal 7 projects will have to move to PHP 8.1+ sooner or later to be on a supported PHP version. @greg-1-anderson hi, you approved #5341 3 weeks ago - anything missing so that it can be merged for a new Drush 8 release? Thank you! |
PHP 7 is security supported with Linux distributions. Ubuntu 14.04 EOL is April 2024 https://canonical.com/blog/ubuntu-14-04-and-16-04-lifecycle-extended-to-ten-years and by default, Ubuntu 14.04 ships with PHP 5.5.9. |
Um, sorry, I was just supposed to merge that. 😊 Done. |
Yay, thanks a lot Greg! I see the tests are failing on the Drush 8.x branch for quite some time, so the next steps I think are
|
The tests on the Drush 8.x branch are now green, but I discovered that various changes in dependencies are making it hard to support global Drush 8 on Drupal 9 (and 10, but I haven't even tried that). Since Drush never formally supported Drupal 9, I simply stopped testing on that version. I did turn on some tests for Dupal 8, but only with PHP 7.4, as there are failures for Drupal 8 with PHP 8. I will have to look to the community to fill these gaps if these configurations are still important. Drush 8 tests are green for Drupal 7 on PHP 5.6 through 8.1, and I will add PHP 8.2 when it is supported in Drual 7. |
Next step is to look at some Drush 8 issues and PRs and see which can be resolved quickly, then I will make a release. |
Co-authored-by: mbomb007 <[email protected]>
I'm satisfied with my sweep through Drush 8 issues and PRs, and will make a release shortly, sometime between this evening and Tuesday, probably. |
Great, thanks! In my opinion we should only support Drupal 7 with Drush 8. Drupal 9 and 10 can use higher drush versions, Drupal 8 is not supported anymore. |
Yes, I agree with you philosophically. I am not going to spend a lot of time on the unsupported configurations; hopefully, anyone still stuck there is working to upgrade, as it probably won't keep working forever. |
Thanks for making Drush 8.4.11 and Drupal 7 work with PHP 8.1 @greg-1-anderson. I got the error below after upgrading to PHP 8.2. Downgrading to PHP 8.1 made it go away and everything works fine:
|
Although I did merge one community-provided PR related to PHP 8.2 warnings, I have not otherwise attempted to support PHP 8.2 on Drush 8 yet. It does look like Drupal 7 supports PHP 8.2 now, so this would be a useful addition. PRs welcome. |
This should be resolved in 8.4.12. Let's open new issues if there are unresolved issues with Drush 8 and PHP 8. |
Describe the bug
Running Drush 8 in a PHP 8.1 environment leads to deprecation warnings:
To Reproduce
Run
drush
using Drush 8 and PHP 8.1Expected behavior
No deprecation warnings
Actual behavior
Deprecation warnings
Workaround
It's just a warning so it doesn't block anything, but it is annoying
System Configuration
Additional information
Looks like maybe this was intended to fix it, but it didn't: #4978
The text was updated successfully, but these errors were encountered: