DRUPAL_MINIMUM_PHP

Same name and namespace in other branches
  1. 7.x includes/bootstrap.inc \DRUPAL_MINIMUM_PHP
  2. 8.9.x core/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

Code

const DRUPAL_MINIMUM_PHP = \Drupal::MINIMUM_PHP;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.