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

Track PHP 8.1 support in hosting and distributions

$
0
0

Problem/Motivation

The policy issue at #3173787: [policy] Require PHP 8.1 for Drupal 10.0 if a dependency does, otherwise require PHP 8.0. (up from 7.3 in Drupal 9) suggests we should require PHP 8.0 at least for Drupal 10. This is an absolute must if Drupal 10 is to be shipped with Symfony 6 which we are aiming for. However based on hosting provider data, Linux distribution support and other factors, we should consider whether to require PHP 8.1 outright or at least have a plan for requiring it later on in Drupal 10's lifecycle.

This is similar to #2917655: [9.4.x only] Drop official PHP 7.3 support in Drupal 9.4.

Proposed resolution

Gather data about Linux distribution and hosting provider support.

Hosting provider support

Tracked in: #3261443: [tracking issue] Track hosting provider support for PHP 8+ (Please add/update data there for your HSP!)

Ubuntu

  • April 2020 -- Ubuntu 20.04 "Focal" -- PHP 7.2
  • Expected April 2022 -- Ubuntu 22.04 :Jammy" -- both PHP 8.0 and 8.1 (one may be removed before release?)

Debian

  • Aug. 2021 -- Debian 11 "Bullseye" -- PHP 7.4
  • Expected mid to late 2023 -- Debian 12 "Bookworm" -- PHP 8.1

RHEL

  • November 2021 -- RHEL 8 -- PHP 7.4
  • Expected May 2022 -- RHEL 9 (beta) -- PHP 8.0
  • Possibly November 2022 -- RHEL 9.1 -- PHP 8.1 support could be added, but this is only conjecture

(Note: CentOS is going EOL.)

Composer ecosystem data -- all Composer package installs

Currently, about 10% of Composer installs use PHP 8.1, 25% use PHP 8.0, 45% use PHP 7.4, 10% use PHP 7.3, and the remainder use a lower version.
Source: https://packagist.org/php-statistics

Composer ecosystem data -- Drupal 9 installs of drupal/core

1% of Drupal Composer sites use PHP 8.1. 10% use PHP 8.0. Over 70% use PHP 7.4, and the remaining 15% or so use PHP 7.3.
Source: https://packagist.org/packages/drupal/core/php-stats#9

Updated April 11th 2023:
Drupal 9:
47% of Drupal 9 sites use PHP 8.1, 23% use Drupal PHP 8.0, 26% use 7.4

Drupal 10:
82% of Drupal 10 sites use PHP 8.1, 17% use PHP 8.2


Viewing all articles
Browse latest Browse all 293733

Trending Articles