-
Notifications
You must be signed in to change notification settings - Fork 556
/
Copy pathrelease-candidates.php
117 lines (103 loc) · 3.63 KB
/
release-candidates.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
<?php
$_SERVER['BASE_PAGE'] = 'qa.php';
include_once __DIR__ . '/include/prepend.inc';
include_once __DIR__ . '/include/release-qa.php';
if (isset($_GET["format"])) {
$output = $QA_RELEASES;
if (($_GET['only'] ?? null) === 'dev_versions') {
$output = $output['reported'];
}
switch ($_GET['format'] ?? null) {
case 'json':
header('Content-Type: application/json; charset=UTF-8');
echo json_encode($output);
exit;
case 'serialize':
default:
header('Content-Type: text/plain; charset=UTF-8');
echo serialize($output);
exit;
}
}
$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
$SIDEBAR_DATA = '
<div class="panel">
Test Releases
<div class="body">
The downloads on this page are not meant to be run in production. They are
for testing only.
</div>
<div class="body">
If you find a problem when running your library or application with these
builds, please file a report on
<a href="https://github.com/php/php-src/issues/">GitHub Issues</a>.
</div>
<br/>
QA Releases API
<div class="body">
<p>
The QA API is based on the query string.
</p>
<p>
Pass in the <code>format</code> parameter, with <code>serialize</code> or
<code>json</code> as value to obtain all information:
</p>
<ul>
<li><a href="https://php.net/release-candidates.php?format=json">/release-candidates.php?format=json</a></li>
<li><a href="https://php.net/release-candidates.php?format=serialize">/release-candidates.php?format=serialize</a></li>
</ul>
<p>
To only tried dev version numbers, add <code>only=dev_versions</code>:
</p>
<ul>
<li><a href="https://php.net/release-candidates.php?format=json&only=dev_versions">/release-candidates.php?format=json&only=dev_versions</a></li>
</ul>
</div>
</div>
';
site_header("Release Candidates", [
'current' => 'downloads',
]);
?>
<h1>Release Candidate Builds</h1>
<p>
This page contains links to the Release Candidate builds that the release
managers create before each actual release. These builds are meant for the
community to test whether no inadvertent changes have been made, and
whether no regressions have been introduced.
</p>
<h3>Available QA Releases:</h3>
<?php if (!empty($QA_RELEASES['releases'])) : ?>
<?php $plural = count($QA_RELEASES['releases']) > 1 ? 's' : ''; ?>
<?php foreach ($QA_RELEASES['releases'] as $pversion => $info) : ?>
<h3 class="title">
PHP <?php echo $info['version']; ?>
</h3>
<div class="content-box">
<ul>
<?php foreach ($info['files'] as $file_type => $file_info) : ?>
<li>
<a href="<?php echo $file_info['path'] ?>"><?php echo "php-{$info['version']}.tar.{$file_type}"; ?></a>
<span class="releasedate"><?php echo date('d M Y', strtotime($info['date'])); ?></span>
<?php foreach ($QA_CHECKSUM_TYPES as $algo): ?>
<span class="<?php echo $algo; ?>">
<?php if (isset($file_info[$algo]) && strlen($file_info[$algo])) : ?>
<?php echo $file_info[$algo]; ?>
<?php else: ?>
<em><small>No checksum value available</small></em>)
<?php endif; ?>
<?php endforeach; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endforeach; ?>
<?php else: ?>
<span class='lihack'>There are no QA releases available at the moment to test.</span>
<?php endif; ?>
<p>
<br/>
<strong>Windows users:</strong>
See <a href="https://windows.php.net/qa/">here</a> for the Windows QA builds.
</p>
<?php
site_footer(['sidebar' => $SIDEBAR_DATA]);