Figure out better solution for PHP version check in install.php

Created on 19 September 2017, over 7 years ago
Updated 3 August 2024, 6 months ago

Problem/Motivation

core/install.php has the following in it:

if (version_compare(PHP_VERSION, '5.5.9') < 0) {
  print 'Your PHP installation is too old. Drupal requires at least PHP 5.5.9. See the <a href="https://www.drupal.org/requirements">system requirements</a> page for more information.';
  exit;
}

The minimum PHP version is scattered through the codebase, which makes it easy to miss a spot when bumping PHP requirements.

#2908079: Move some of the bootstrap.inc PHP-related constants to \Drupal and deprecate the old versions β†’ will consolidate most places to a class constant, but this cannot be used before the autoloader is initialized. A proper solution needs to investigated to DRY this.

Proposed resolution

Parse out of core/compser.json?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mpdonadio Philadelphia/PA/USA (UTC-5)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024