function SystemRequirements::phpVersionWithPdoDisallowMultipleStatements

Determines whether the passed in PHP version disallows multiple statements.

Parameters

string $phpversion:

Return value

bool

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. All supported PHP versions support disabling multi-statement queries in MySQL.

See also

https://www.drupal.org/node/3054692

1 call to SystemRequirements::phpVersionWithPdoDisallowMultipleStatements()
SystemRequirementsTest::testPhpVersionWithPdoDisallowMultipleStatements in core/modules/system/tests/src/Unit/SystemRequirementsTest.php
@covers ::phpVersionWithPdoDisallowMultipleStatements @dataProvider providerTestPhpVersionWithPdoDisallowMultipleStatements @expectedDeprecation Drupal\system\SystemRequirements::phpVersionWithPdoDisallowMultipleStatements() is deprecated in Drupal…

File

core/modules/system/src/SystemRequirements.php, line 25

Class

SystemRequirements
Class for helper methods used for the system requirements.

Namespace

Drupal\system

Code

public static function phpVersionWithPdoDisallowMultipleStatements($phpversion) {
    @trigger_error(__NAMESPACE__ . '\\SystemRequirements::phpVersionWithPdoDisallowMultipleStatements() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. All supported PHP versions support disabling multi-statement queries in MySQL. See https://www.drupal.org/node/3054692', E_USER_DEPRECATED);
    // 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', '>=');
}

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