@@ 107-112 (lines=6) @@ | ||
104 | $arrTestVersions[$testVersion] = array($matches[1], $matches[2]); |
|
105 | } |
|
106 | } |
|
107 | elseif (preg_match('/^\d+\.\d+-$/', $testVersion)) { |
|
108 | $testVersion = substr($testVersion, 0, -1); |
|
109 | // If no upper-limit is set, we set the max version to 99.9. |
|
110 | // This is *probably* safe... :-) |
|
111 | $arrTestVersions[$testVersion] = array($testVersion, '99.9'); |
|
112 | } |
|
113 | elseif (preg_match('/^-\d+\.\d+$/', $testVersion)) { |
|
114 | $testVersion = substr($testVersion, 1); |
|
115 | // If no lower-limit is set, we set the min version to 4.0. |
|
@@ 113-121 (lines=9) @@ | ||
110 | // This is *probably* safe... :-) |
|
111 | $arrTestVersions[$testVersion] = array($testVersion, '99.9'); |
|
112 | } |
|
113 | elseif (preg_match('/^-\d+\.\d+$/', $testVersion)) { |
|
114 | $testVersion = substr($testVersion, 1); |
|
115 | // If no lower-limit is set, we set the min version to 4.0. |
|
116 | // Whilst development focuses on PHP 5 and above, we also accept |
|
117 | // sniffs for PHP 4, so we include that as the minimum. |
|
118 | // (It makes no sense to support PHP 3 as this was effectively a |
|
119 | // different language). |
|
120 | $arrTestVersions[$testVersion] = array('4.0', $testVersion); |
|
121 | } |
|
122 | elseif (!$testVersion == '') { |
|
123 | trigger_error("Invalid testVersion setting: '" . $testVersion |
|
124 | . "'", E_USER_WARNING); |