Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / system / src / SystemRequirements.php
1 <?php
2
3 namespace Drupal\system;
4
5 /**
6  * Class for helper methods used for the system requirements.
7  */
8 class SystemRequirements {
9
10   /**
11    * Determines whether the passed in PHP version disallows multiple statements.
12    *
13    * @param string $phpversion
14    *
15    * @return bool
16    */
17   public static function phpVersionWithPdoDisallowMultipleStatements($phpversion) {
18     // PDO::MYSQL_ATTR_MULTI_STATEMENTS was introduced in PHP versions 5.5.21
19     // and 5.6.5.
20     return (version_compare($phpversion, '5.5.21', '>=') && version_compare($phpversion, '5.6.0', '<'))
21       || version_compare($phpversion, '5.6.5', '>=');
22   }
23
24 }