|
@@ 126-130 (lines=5) @@
|
| 123 |
|
$arrTestVersions[$testVersion] = array($matches[1], $matches[2]); |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
elseif (preg_match('/^\d+\.\d+-$/', $testVersion)) { |
| 127 |
|
// If no upper-limit is set, we set the max version to 99.9. |
| 128 |
|
// This is *probably* safe... :-) |
| 129 |
|
$arrTestVersions[$testVersion] = array(substr($testVersion, 0, -1), '99.9'); |
| 130 |
|
} |
| 131 |
|
elseif (preg_match('/^-\d+\.\d+$/', $testVersion)) { |
| 132 |
|
// If no lower-limit is set, we set the min version to 4.0. |
| 133 |
|
// Whilst development focuses on PHP 5 and above, we also accept |
|
@@ 131-138 (lines=8) @@
|
| 128 |
|
// This is *probably* safe... :-) |
| 129 |
|
$arrTestVersions[$testVersion] = array(substr($testVersion, 0, -1), '99.9'); |
| 130 |
|
} |
| 131 |
|
elseif (preg_match('/^-\d+\.\d+$/', $testVersion)) { |
| 132 |
|
// If no lower-limit is set, we set the min version to 4.0. |
| 133 |
|
// Whilst development focuses on PHP 5 and above, we also accept |
| 134 |
|
// sniffs for PHP 4, so we include that as the minimum. |
| 135 |
|
// (It makes no sense to support PHP 3 as this was effectively a |
| 136 |
|
// different language). |
| 137 |
|
$arrTestVersions[$testVersion] = array('4.0', substr($testVersion, 1)); |
| 138 |
|
} |
| 139 |
|
elseif (!$testVersion == '') { |
| 140 |
|
trigger_error("Invalid testVersion setting: '" . $testVersion |
| 141 |
|
. "'", E_USER_WARNING); |