forked from php/web-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
supported-versions.php
129 lines (111 loc) · 4.25 KB
/
supported-versions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
$_SERVER['BASE_PAGE'] = 'supported-versions.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/branches.inc';
site_header('Supported Versions', array('css' => array('supported-versions.css')));
// Version notes: if you need to make a note about a version having an unusual
// support lifetime, add it under a heading with an anchor, and add the anchor
// and branch names to the array below ('x.y' => '#anchor-name').
$VERSION_NOTES = array(
'5.6' => '#php-5.6',
);
?>
<h1>Supported Versions</h1>
<p>
Each release branch of PHP is fully supported for two years from its initial
stable release. During this period, bugs and security issues that have been
reported are fixed and are released in regular point releases.
</p>
<p>
After this two year period of active support, each branch is then supported
for an additional year for critical security issues only. Releases during
this period are made on an as-needed basis: there may be multiple point
releases, or none, depending on the number of reports.
</p>
<p>
Once the three years of support are completed, the branch reaches its end of
life and is no longer supported. <a href="/eol.php">A table of end of life
branches is available.</a>
</p>
<h3>Currently Supported Versions</h3>
<table class="standard">
<thead>
<tr>
<th>Branch</th>
<th colspan="2">Initial Release</th>
<th colspan="2">Active Support Until</th>
<th colspan="2">Security Support Until</th>
</tr>
</thead>
<tbody>
<?php foreach (get_active_branches(false) as $major => $releases): ?>
<?php ksort($releases) ?>
<?php foreach ($releases as $branch => $release): ?>
<?php
$state = get_branch_support_state($branch);
$initial = get_branch_release_date($branch);
$until = get_branch_bug_eol_date($branch);
$eol = get_branch_security_eol_date($branch);
?>
<tr class="<?php echo $state ?>">
<td>
<a href="/downloads.php#v<?php echo htmlspecialchars($release['version']) ?>"><?php echo htmlspecialchars($branch) ?></a>
<?php if (isset($VERSION_NOTES[$branch])): ?>
<a class="version-notes" href="<?php echo htmlspecialchars($VERSION_NOTES[$branch]) ?>">*</a>
<?php endif ?>
</td>
<td><?php echo htmlspecialchars($initial->format('j M Y')) ?></td>
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($initial, null)) ?></em></td>
<td><?php echo htmlspecialchars($until->format('j M Y')) ?></td>
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($until, null)) ?></em></td>
<td><?php echo htmlspecialchars($eol->format('j M Y')) ?></td>
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($eol, null)) ?></em></td>
</tr>
<?php endforeach ?>
<?php endforeach ?>
</tbody>
</table>
<p>
Or, visualised as a calendar:
</p>
<?php
/* Chrome doesn't handle @font-face directives in SVG files included via <img>
* tags (which is odd, since it does handle them when you view the SVG files by
* themselves). Instead, we'll just pull the SVG into the page inline, thereby
* ensuring that we have the same text formatting as the rest of the page. */
$non_standalone = true;
include $_SERVER['DOCUMENT_ROOT'] . '/images/supported-versions.php';
?>
<h4>Key</h4>
<table class="standard">
<tr class="stable">
<td>Active support</td>
<td>
A release that is being actively supported. Reported bugs and security
issues are fixed and regular point releases are made.
</td>
</tr>
<tr class="security">
<td>Security fixes only</td>
<td>
A release that is supported for critical security issues only. Releases
are only made on an as-needed basis.
</td>
</tr>
<tr class="eol">
<td>End of life</td>
<td>
A release that is no longer supported. Users of this release should
upgrade as soon as possible, as they may be exposed to unpatched security
vulnerabilities.
</td>
</tr>
</table>
<h4>Version specific notes</h4>
<h5 id="php-5.6">PHP 5.6</h5>
<p>
As it is the final PHP 5 release, support for PHP 5.6 has been extended:
active support will run for an additional four months, and the security fix
period has been doubled from one to two years. Other releases are unaffected.
</p>
<?php site_footer(); ?>