3 namespace Drupal\system;
6 * Class for helper methods used for the system requirements.
8 class SystemRequirements {
11 * Determines whether the passed in PHP version disallows multiple statements.
13 * @param string $phpversion
17 public static function phpVersionWithPdoDisallowMultipleStatements($phpversion) {
18 // PDO::MYSQL_ATTR_MULTI_STATEMENTS was introduced in PHP versions 5.5.21
20 return (version_compare($phpversion, '5.5.21', '>=') && version_compare($phpversion, '5.6.0', '<'))
21 || version_compare($phpversion, '5.6.5', '>=');