Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295283

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

$
0
0

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
composer/composer 1.10.13Should update to Composer 2.0. #3135247: Composer's "prefer-stable" setting cannot be relied on to produce a stable release is now in, we should consider it in #3128631: Update dependencies composer/composer and composer/semver to ^3.
composer/semver 1.7.1
doctrine/reflection 1.2.1https://github.com/doctrine/reflection/pull/43
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

Additionally to the composer reported dependencies above:

2. Drupal issues that can be addressed in Drupal 8 & 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

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 295283

Trending Articles



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