1<?php 2$_SERVER['BASE_PAGE'] = 'downloads.php'; 3include_once __DIR__ . '/include/prepend.inc'; 4include_once __DIR__ . '/include/gpg-keys.inc'; 5include_once __DIR__ . '/include/version.inc'; 6 7// Try to make this page non-cached 8header_nocache(); 9 10$SHOW_COUNT = 4; 11 12$SIDEBAR_DATA = ' 13<div class="panel"> 14 <a href="/supported-versions.php">Supported Versions</a> 15 <div class="body"> 16 Check the <a href="/supported-versions.php">supported versions</a> page for 17 more information on the support lifetime of each version of PHP. 18 </div> 19</div> 20 21<p class="panel"><a href="download-docs.php">Documentation download</a></p> 22<p class="panel"><a href="download-logos.php">PHP logos</a></p> 23 24<p class="panel"><a href="/git.php">Development sources (git)</a></p> 25<p class="panel"><a href="/releases/">Old archives</a></p> 26'; 27 28site_header("Downloads", 29 [ 30 'link' => [ 31 [ 32 "rel" => "alternate", 33 "type" => "application/atom+xml", 34 "href" => $MYSITE . "releases/feed.php", 35 "title" => "PHP Release feed", 36 ], 37 ], 38 "current" => "downloads", 39 ], 40); 41?> 42<?php $i = 0; foreach ($RELEASES as $MAJOR => $major_releases): /* major releases loop start */ 43 $releases = array_slice($major_releases, 0, $SHOW_COUNT); 44?> 45<a id="v<?php echo $MAJOR; ?>"></a> 46<?php foreach ($releases as $v => $a): ?> 47 <?php $mver = substr($v, 0, strrpos($v, '.')); ?> 48 <?php $stable = $i++ === 0 ? "Current Stable" : "Old Stable"; ?> 49 50 <h3 id="v<?php echo $v; ?>" class="title"> 51 <span class="release-state"><?php echo $stable; ?></span> 52 PHP <?php echo $v; ?> 53 (<a href="/ChangeLog-<?php echo $MAJOR; ?>.php#<?php echo urlencode($v); ?>" class="changelog">Changelog</a>) 54 </h3> 55 <div class="content-box"> 56 57 <ul> 58 <?php foreach ($a['source'] as $rel): ?> 59 <li> 60 <?php download_link($rel['filename'], $rel['filename']); ?> 61 <span class="releasedate"><?php echo date('d M Y', strtotime($rel['date'])); ?></span> 62 <?php 63 if (isset($rel['md5'])) echo '<span class="md5sum">', $rel['md5'], '</span>'; 64 if (isset($rel['sha256'])) echo '<span class="sha256">', $rel['sha256'], '</span>'; 65 ?> 66 <?php if (isset($rel['note']) && $rel['note']): ?> 67 <p> 68 <strong>Note:</strong> 69 <?php echo $rel['note']; ?> 70 </p> 71 <?php endif; ?> 72 </li> 73 <?php endforeach; ?> 74 <li> 75 <a href="https://windows.php.net/download#php-<?php echo urlencode($mver); ?>"> 76 Windows downloads 77 </a> 78 </li> 79 </ul> 80 81 <a href="#gpg-<?php echo $mver; ?>">GPG Keys for PHP <?php echo $mver; ?></a> 82 </div> 83<?php endforeach; ?> 84<?php endforeach; /* major releases loop end */ ?> 85 86<hr> 87<h2>GPG Keys</h2> 88<p> 89The releases are tagged and signed in the <a href='git.php'>PHP Git Repository</a>. 90The following official GnuPG keys of the current PHP Release Manager can be used 91to verify the tags: 92</p> 93 94<?php gpg_key_show_keys(true /* activeOnly */); ?> 95 96<p> 97 <a href="gpg-keys.php"> 98 A full list of GPG keys used for current and older releases is also 99 available. 100 </a> 101</p> 102 103<?php 104site_footer(['sidebar' => $SIDEBAR_DATA]); 105