You are here

class SystemRequirements in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/SystemRequirements.php \Drupal\system\SystemRequirements

Class for helper methods used for the system requirements.

Hierarchy

Expanded class hierarchy of SystemRequirements

3 files declare their use of SystemRequirements
StatusTest.php in core/modules/system/src/Tests/System/StatusTest.php
Contains \Drupal\system\Tests\System\StatusTest.
system.install in core/modules/system/system.install
Install, update and uninstall functions for the system module.
SystemRequirementsTest.php in core/modules/system/tests/src/Unit/SystemRequirementsTest.php
Contains \Drupal\Tests\system\Unit\SystemRequirementsTest.

File

core/modules/system/src/SystemRequirements.php, line 13
Contains \Drupal\system\SystemRequirements.

Namespace

Drupal\system
View source
class SystemRequirements {

  /**
   * Determines whether the passed in PHP version disallows multiple statements.
   *
   * @param string $phpversion
   *
   * @return bool
   */
  public static function phpVersionWithPdoDisallowMultipleStatements($phpversion) {

    // PDO::MYSQL_ATTR_MULTI_STATEMENTS was introduced in PHP versions 5.5.21
    // and 5.6.5.
    return version_compare($phpversion, '5.5.21', '>=') && version_compare($phpversion, '5.6.0', '<') || version_compare($phpversion, '5.6.5', '>=');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SystemRequirements::phpVersionWithPdoDisallowMultipleStatements public static function Determines whether the passed in PHP version disallows multiple statements.