You are here

constant DRUPAL_MINIMUM_SUPPORTED_PHP in Drupal 8

Same name and namespace in other branches
  1. 9 core/includes/bootstrap.inc \DRUPAL_MINIMUM_SUPPORTED_PHP

Minimum supported version of PHP.

Below this version:

  • New sites cannot be installed, except from within tests.
  • Updates from previous Drupal versions can be run, but users are warned that Drupal no longer supports that PHP version.
  • An error is shown in the status report that the PHP version is too old.

@todo Move this to an appropriate autoloadable class. See https://www.drupal.org/project/drupal/issues/2908079

5 uses of DRUPAL_MINIMUM_SUPPORTED_PHP
QuickStartTest::testPhpRequirement in core/tests/Drupal/Tests/Core/Command/QuickStartTest.php
Tests that the installer throws a requirement error on older PHP versions.
QuickStartTest::testQuickStartCommand in core/tests/Drupal/Tests/Core/Command/QuickStartTest.php
Tests the quick-start command.
QuickStartTest::testQuickStartInstallAndServerCommands in core/tests/Drupal/Tests/Core/Command/QuickStartTest.php
Tests the quick-start commands.
RequirementsPageTrait::updateRequirementsProblem in core/tests/Drupal/Tests/RequirementsPageTrait.php
Handles the update requirements page.
system_requirements in core/modules/system/system.install
Implements hook_requirements().

File

core/includes/bootstrap.inc, line 51
Functions that need to be loaded on every Drupal request.

Code

const DRUPAL_MINIMUM_SUPPORTED_PHP = '7.0.8';