You are here

constant DRUPAL_MINIMUM_PHP in Drupal 9

Same name and namespace in other branches
  1. 8 core/includes/bootstrap.inc \DRUPAL_MINIMUM_PHP
  2. 5 modules/system/system.install \DRUPAL_MINIMUM_PHP
  3. 6 modules/system/system.module \DRUPAL_MINIMUM_PHP
  4. 7 includes/bootstrap.inc \DRUPAL_MINIMUM_PHP

Minimum allowed version of PHP for Drupal to be bootstrapped.

Below this version:

  • The installer cannot be run.
  • Updates cannot be run.
  • Modules and themes cannot be enabled.
  • If a site managed to bypass all of the above, then an error is shown in the status report and various fatal errors occur on various pages.

Deprecated

in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal::MINIMUM_PHP instead.

See also

https://www.drupal.org/node/2909361

install.php

1 use of DRUPAL_MINIMUM_PHP
ComposerTest::testEnsurePhpConfiguredVersion in core/tests/Drupal/Tests/Composer/ComposerTest.php
Ensure that the configured php version matches the minimum php version.

File

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

Code

const DRUPAL_MINIMUM_PHP = \Drupal::MINIMUM_PHP;