-
-
Notifications
You must be signed in to change notification settings - Fork 645
Support PHP 8 #2115
Comments
Will there be next release with PHP 8 support? |
@kom177 - As much as I would like to do it (I'm already using PHP 8 in some systems elsewhere), Drupal itself doesn't yet support PHP 8 :( See: geerlingguy/drupal-container#32 and https://www.drupal.org/project/drupal/issues/3156651 |
"PHP 8 is supported from Drupal 9.1.0" |
Hmm... the last time I tried installing it (June) I was running into errors. Maybe it was Drush or some other dependency that still wasn't compatible? |
I've stress-tested production site on PHP 8.0.3 and everything worked fine in a week (D9.1.10, D9.2.0 and D9.2.2, core-recommended project with more than 50 contrib modules). But Drush is configured to run under PHP 7.3. I'll try to reconfigure it. |
What could we do manually to enable PHP 8 support? |
The php-versions role supports PHP 8, so technically if you're on Ubuntu 18.04 or 20.04, or Debian 10/11, you could set |
Jeff, thanks, everything works! |
For new projects and D9 PHP 8 is recommended: https://www.drupal.org/docs/system-requirements/php-requirements Would be nice to at least have instructions how to get PHP 8.0 provisioned in DrupalVM. |
|
Actually this was (approximately) what I did:
include_role:
when: '"php-versions" in installed_extras'`
Looks like it's working but I think only changing the |
Hi @TipiT I am kind of struggling to place which to where. Thanks. |
https://www.drupal.org/project/drupal/issues/3156651 is now closed / fixed and it would be nice to have PHP 8.0 or even 8.1 out of the box, as I cannot învest too much time in fiddeling with other box versions. Is this planned for the near future @geerlingguy ? |
@florianmuellerCH - I probably won't work on it; see #2164 |
Need help with using php 8 on DrupalVM, these instructions are not clear to me how to do this... |
Hi @geerlingguy / @TipiT I understand that PHP Json package is now part of Core. But how do we exclude this package from being executed , do we need to include the package "geerlingguy/ansible-role-php-versions" along with DRUPAL VM package to support PHP 8 version ? |
I got the same issue about php8.0-json |
I managed to get this working with these steps: 1 - Since there is no release for the PHP 8 code (https://github.com/geerlingguy/ansible-role-php-versions/blob/master/vars/Debian.yml#L47) I had to require the master branch as 6.0.5 using this command: 2 - Updated my
3 - Manually removed this line from this file that is in the vendor folder https://github.com/geerlingguy/ansible-role-php-versions/blob/master/vars/Debian.yml#L34 4 - Ran I hope this is helpful. I wonder if someone could create a new release of drupal-vm to remove step 1. |
Thanks for the response @marcelovani .. I have also made similar steps to make it work like just following step 3 alone works for me .. I was just looking for option where we don't have to modify files inside Vendor folder. |
Issue Type
Summary
PHP 8.0.0 was released yesterday: https://www.php.net/archive/2020.php#2020-11-26-3
I will need to update some roles to support it, but it would be nice to be able to support it, and probably bump the default version of PHP to 7.4 now.
The text was updated successfully, but these errors were encountered: