class SystemRequirements in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/SystemRequirements.php \Drupal\system\SystemRequirements
Class for helper methods used for the system requirements.
Hierarchy
- class \Drupal\system\SystemRequirements
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\systemView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SystemRequirements:: |
public static | function | Determines whether the passed in PHP version disallows multiple statements. |