Mercurial > hg > isophonics-drupal-site
comparison core/modules/system/src/SystemRequirements.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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 } |