Lines Matching refs:branch

7  * branch's active support and security fix EOLs, these can be reflected here.
106 $branch = version_number_to_branch($version);
108 if ($branch) {
109 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
110 $branches[$major][$branch] = $release;
111 $branches[$major][$branch]['version'] = $version;
119 $branch = version_number_to_branch($version);
121 if ($branch) {
122 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
123 $branches[$major][$branch] = $release;
124 $branches[$major][$branch]['version'] = $version;
131 foreach ($branches as &$branch) {
132 krsort($branch);
144 $branch = version_number_to_branch($version);
146 if ($branch) {
147 $threshold = get_branch_security_eol_date($branch);
156 $branches[$major][$branch] = $release;
157 $branches[$major][$branch]['version'] = $version;
171 * must be in $RELEASES _and_ must be the full version number, not the branch:
178 // Gather the last release on each branch into a convenient array.
181 $branch = version_number_to_branch($version);
183 if ($branch) {
184 …if (!isset($branches[$major][$branch]) || version_compare($version, $branches[$major][$branch]['ve…
185 $branches[$major][$branch] = [
199 $branch = version_number_to_branch($version);
201 if ($branch) {
202 if ($now < get_branch_security_eol_date($branch)) {
203 /* This branch isn't EOL: remove it from our array. */
204 if (isset($branches[$major][$branch])) {
205 unset($branches[$major][$branch]);
224 $branch = version_number_to_branch($version);
226 if ($branch) {
227 $branches[$major][$branch] = [
238 foreach ($branches as &$branch) {
239 krsort($branch);
245 /* $branch is expected to have at least two components: MAJOR.MINOR or
247 * return either null (if no release exists on the given branch), or the usual
249 function get_initial_release($branch) {
250 $branch = version_number_to_branch($branch);
251 if (!$branch) {
254 $major = substr($branch, 0, strpos($branch, '.'));
256 if (isset($GLOBALS['OLDRELEASES'][$major]["$branch.0"])) {
257 return $GLOBALS['OLDRELEASES'][$major]["$branch.0"];
260 if(isset($GLOBALS['BRANCHES'][$branch])) {
261 return $GLOBALS['BRANCHES'][$branch];
264 /* If there's only been one release on the branch, it won't be in
266 if (isset($GLOBALS['RELEASES'][$major]["$branch.0"])) {
268 $release = $GLOBALS['RELEASES'][$major]["$branch.0"];
277 function get_final_release($branch) {
278 $branch = version_number_to_branch($branch);
279 if (!$branch) {
282 $major = substr($branch, 0, strpos($branch, '.'));
284 $last = "$branch.0";
286 … if (version_number_to_branch($version) == $branch && version_compare($version, $last, '>')) {
295 /* If there's only been one release on the branch, it won't be in
308 function get_branch_bug_eol_date($branch): ?DateTime
310 if (isset($GLOBALS['BRANCHES'][$branch]['stable'])) {
311 return new DateTime($GLOBALS['BRANCHES'][$branch]['stable']);
314 $date = get_branch_release_date($branch);
319 if (version_compare($branch, '8.2', '<')) {
327 function get_branch_security_eol_date($branch): ?DateTime
329 if (isset($GLOBALS['BRANCHES'][$branch]['security'])) {
330 return new DateTime($GLOBALS['BRANCHES'][$branch]['security']);
335 if (version_compare($branch, '5.3', '<')) {
336 $release = get_final_release($branch);
341 $date = get_branch_release_date($branch);
344 if (version_compare($branch, '8.1', '<')) {
354 function get_branch_release_date($branch): ?DateTime
356 $initial = get_initial_release($branch);
361 function get_branch_support_state($branch) {
362 $initial = get_branch_release_date($branch);
363 $bug = get_branch_bug_eol_date($branch);
364 $security = get_branch_security_eol_date($branch);