You are here

constant DRUPAL_MINIMUM_PHP in Drupal 8

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

Minimum allowed version of PHP.

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.

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

See also

install.php

3 uses of DRUPAL_MINIMUM_PHP
hook_requirements in core/lib/Drupal/Core/Extension/module.api.php
Check installation requirements and do status reporting.
install_profile_info in core/includes/install.inc
Retrieves information about an installation profile from its .info.yml file.
system_requirements in core/modules/system/system.install
Implements hook_requirements().

File

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

Code

const DRUPAL_MINIMUM_PHP = '7.0.8';