Quantcast
Viewing all articles
Browse latest Browse all 294773

[meta] Ensure compatibility of Drupal 9 with PHP 8.0 (as it evolves)

Problem/Motivation

Make sure Drupal keeps being compatible with PHP 8. Work with dependencies as needed. See #3086374: Make Drupal 8 & 9 compatible with PHP 7.4 for how we did it with PHP 7.4. PHP 8.0 is feature frozen and beta4 is out, see https://www.php.net/archive/2020.php#2020-09-17-1

Proposed resolution

The following task list has been determined by testing on #3156595: Make Drupal 9 installable on PHP8.

1. Dependency updates to support PHP 8

To produce a list of dependencies that are blocking PHP 8 support, you can do the following. Make sure you use PHP 7.4+ to run it.

$ git clone --branch 9.1.x https://git.drupalcode.org/project/drupal.git whynotphp8
$ cd whynotphp8/
$ composer install
$ composer update
$ composer why-not php:8
DependencyLinks
fabpot/goutte 3.3.0Possibly #3176655: Use Behat\Mink\Driver\BrowserKitDriver directly instead of GoutteDriver for PHP 8 compatibility or if that does not work out https://github.com/FriendsOfPHP/Goutte/issues/429
laminas/laminas-diactoros 2.4.1https://github.com/laminas/laminas-diactoros/pull/46
laminas/laminas-escaper 2.6.1https://github.com/laminas/laminas-escaper/issues/8
laminas/laminas-feed 2.12.3https://github.com/laminas/laminas-feed/issues/27
typo3/phar-stream-wrapper 3.1.5https://github.com/TYPO3/phar-stream-wrapper/issues/64
https://github.com/TYPO3/phar-stream-wrapper/pull/65

Additionally to the composer reported dependencies above:

2. Drupal issues that can be addressed in Drupal 9 today

These issues can proceed without worrying about the how and if vendor support works for PHP 8 since the changes are all PHP 7 compatible. We can keep the changes PHP 7.0 compatible to make things easy for Drupal 8.

3. Drupal issues that need a largely working PHP 8 build to test

  • None

DONE

Remaining tasks

See above.

User interface changes

None.

API changes

Data model changes

None.

Release notes snippet


Viewing all articles
Browse latest Browse all 294773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>