class SystemRequirements in Drupal 8
Class for helper methods used for the system requirements.
Hierarchy
- class \Drupal\system\SystemRequirements
Expanded class hierarchy of SystemRequirements
1 file declares its use of SystemRequirements
- SystemRequirementsTest.php in core/
modules/ system/ tests/ src/ Unit/ SystemRequirementsTest.php
File
- core/
modules/ system/ src/ SystemRequirements.php, line 10
Namespace
Drupal\systemView source
class SystemRequirements {
/**
* Determines whether the passed in PHP version disallows multiple statements.
*
* @param string $phpversion
*
* @return 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 https://www.drupal.org/node/3054692
*/
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', '>=');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SystemRequirements:: |
public static | function | Determines whether the passed in PHP version disallows multiple statements. |