|
5 | 5 |
|
6 | 6 | $SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
|
7 | 7 |
|
| 8 | +$SIDEBAR_DATA = ' |
| 9 | +<div class="panel"> |
| 10 | + Test Releases |
| 11 | + <div class="body"> |
| 12 | + The downloads on this page are not meant to be run in production. They are |
| 13 | + for testing only. |
| 14 | + </div> |
| 15 | + <div class="body"> |
| 16 | + If you find a problem when running your library or application with these |
| 17 | + builds, please file a report on <a |
| 18 | + href="https://github.com/php/php-src/issues/">GitHub Issues</a>. |
| 19 | + </div> |
| 20 | +</div> |
| 21 | +'; |
| 22 | + |
8 | 23 | site_header("Release Candidates", [
|
9 |
| - 'current' => 'downloads', |
| 24 | + 'current' => 'downloads', |
10 | 25 | ]);
|
11 | 26 |
|
12 | 27 | ?>
|
13 | 28 | <h1>Release Candidate Builds</h1>
|
14 | 29 | <p>
|
15 |
| - This page contains links to the Release Candidate builds that the release |
16 |
| - managers create before each actual release. These builds are meant for the |
17 |
| - community to test whether no inadvertent changes have been made, and |
18 |
| - whether no regressions have been introduced. |
| 30 | +This page contains links to the Release Candidate builds that the release |
| 31 | +managers create before each actual release. These builds are meant for the |
| 32 | +community to test whether no inadvertent changes have been made, and |
| 33 | +whether no regressions have been introduced. |
19 | 34 | </p>
|
20 | 35 |
|
21 | 36 | <h3>Available QA Releases:</h3>
|
22 |
| -<?php show_release_qa($QA_RELEASES); ?> |
| 37 | +<?php if (!empty($QA_RELEASES['releases'])) : ?> |
| 38 | + <?php $plural = count($QA_RELEASES['releases']) > 1 ? 's' : ''; ?> |
| 39 | + |
| 40 | + <?php foreach ($QA_RELEASES['releases'] as $pversion => $info) : ?> |
| 41 | + <h3 class="title"> |
| 42 | + PHP <?php echo $info['version']; ?> |
| 43 | + </h3> |
| 44 | + <div class="content-box"> |
| 45 | + |
| 46 | + <ul> |
| 47 | + <?php foreach ($info['files'] as $file_type => $file_info) : ?> |
| 48 | + <li> |
| 49 | + <?php download_link($file_info['path'], "php-{$info['version']}.tar.{$file_type}"); ?> |
| 50 | + <span class="releasedate"><?php echo date('d M Y', strtotime($info['date'])); ?></span> |
| 51 | + <?php foreach ($QA_CHECKSUM_TYPES as $algo): ?> |
| 52 | + <span class="<?php echo $algo; ?>"> |
| 53 | + <?php if (isset($file_info[$algo]) && strlen($file_info[$algo])) : ?> |
| 54 | + <?php echo $file_info[$algo]; ?> |
| 55 | + <?php else: ?> |
| 56 | + <em><small>No checksum value available</small></em>) |
| 57 | + <?php endif; ?> |
| 58 | + <?php endforeach; ?> |
| 59 | + </li> |
| 60 | + <?php endforeach; ?> |
| 61 | + </ul> |
| 62 | + <?php endforeach; ?> |
| 63 | +<?php else: ?> |
| 64 | + <span class='lihack'>There are no QA releases available at the moment to test.</span> |
| 65 | +<?php endif; ?> |
| 66 | + |
23 | 67 | <p>
|
24 |
| -<br> |
25 |
| -<strong>Windows users:</strong> |
26 |
| -See <a href="https://windows.php.net/qa/">here</a> for the Windows QA builds. |
| 68 | + <br/> |
| 69 | + <strong>Windows users:</strong> |
| 70 | + See <a href="https://windows.php.net/qa/">here</a> for the Windows QA builds. |
27 | 71 | </p>
|
28 |
| -<?php |
29 |
| - |
30 |
| -site_footer(); |
31 |
| - |
32 |
| -function show_release_qa($QA_RELEASES) { |
33 |
| - // The checksum configuration array |
34 |
| - global $QA_CHECKSUM_TYPES; |
35 |
| - |
36 |
| - echo "<!-- RELEASE QA -->\n"; |
37 |
| - |
38 |
| - if (!empty($QA_RELEASES['releases'])) { |
39 |
| - |
40 |
| - $plural = count($QA_RELEASES['releases']) > 1 ? 's' : ''; |
41 |
| - |
42 |
| - // QA Releases |
43 |
| - echo "<span class='lihack'>\n"; |
44 |
| - echo "Providing QA for the following <a href='/rc.php'>test release{$plural}</a>:<br> <br>\n"; |
45 |
| - echo "</span>\n"; |
46 |
| - echo "<table>\n"; |
47 | 72 |
|
48 |
| - foreach ($QA_RELEASES['releases'] as $pversion => $info) { |
49 |
| - |
50 |
| - echo "<tr>\n"; |
51 |
| - echo "<td colspan=\"" . (sizeof($QA_CHECKSUM_TYPES) + 1) . "\">\n"; |
52 |
| - echo "<h3 style=\"margin: 0px;\">{$info['version']}</h3>\n"; |
53 |
| - echo "</td>\n"; |
54 |
| - echo "</tr>\n"; |
55 |
| - |
56 |
| - foreach ($info['files'] as $file_type => $file_info) { |
57 |
| - echo "<tr>\n"; |
58 |
| - echo "<td width=\"20%\"><a href=\"{$file_info['path']}\">php-{$info['version']}.tar.{$file_type}</a></td>\n"; |
59 |
| - |
60 |
| - foreach ($QA_CHECKSUM_TYPES as $algo) { |
61 |
| - echo '<td>'; |
62 |
| - echo '<strong>' . strtoupper($algo) . ':</strong> '; |
63 |
| - |
64 |
| - if (isset($file_info[$algo]) && strlen($file_info[$algo])) { |
65 |
| - echo $file_info[$algo]; |
66 |
| - } else { |
67 |
| - echo '(<em><small>No checksum value available</small></em>) '; |
68 |
| - } |
69 |
| - |
70 |
| - echo "</td>\n"; |
71 |
| - } |
72 |
| - |
73 |
| - echo "</tr>\n"; |
74 |
| - } |
75 |
| - } |
76 |
| - |
77 |
| - echo "</table>\n"; |
78 |
| - } else { |
79 |
| - echo "<span class='lihack'>There are no QA releases available at the moment to test.</span>"; |
80 |
| - } |
| 73 | +<?php |
| 74 | +site_footer(['sidebar' => $SIDEBAR_DATA]); |
81 | 75 |
|
82 |
| - echo "<!-- END -->\n"; |
83 |
| -} |
0 commit comments