DRUPAL_MINIMUM_PHP

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

Code

const DRUPAL_MINIMUM_PHP = '7.0.8';

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