You are here

public static function SystemRequirements::phpVersionWithPdoDisallowMultipleStatements in Zircon Profile 8

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

Determines whether the passed in PHP version disallows multiple statements.

Parameters

string $phpversion:

Return value

bool

3 calls to SystemRequirements::phpVersionWithPdoDisallowMultipleStatements()
StatusTest::testStatusPage in core/modules/system/src/Tests/System/StatusTest.php
Tests that the status page returns.
SystemRequirementsTest::testPhpVersionWithPdoDisallowMultipleStatements in core/modules/system/tests/src/Unit/SystemRequirementsTest.php
@dataProvider providerTestPhpVersionWithPdoDisallowMultipleStatements
system_requirements in core/modules/system/system.install
Implements hook_requirements().

File

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

Class

SystemRequirements
Class for helper methods used for the system requirements.

Namespace

Drupal\system

Code

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', '>=');
}