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