Commit:    014cb8726768103f6b0623f0e0c4a13abfdea50a
Author:    Christoph M. Becker <cmbecke...@gmx.de>         Wed, 20 Jan 2021 
23:31:32 +0100
Parents:   99de6b6c56acc5ed3c406cd6937aa4899b3eff8c
Branches:  master

Link:       
http://git.php.net/?p=web/windows.git;a=commitdiff;h=014cb8726768103f6b0623f0e0c4a13abfdea50a

Log:
Conditionally display debug and devel packages of snaps

Even if a snapshot build has a binary package, it does not necessarily
have debug and devel packages.  Otherwise it wouldn't be sensible to
check that in generate_snap_page.php in the first place.

Changed paths:
  M  templates/snaps.php


Diff:
diff --git a/templates/snaps.php b/templates/snaps.php
index 7e565a6..b90870b 100644
--- a/templates/snaps.php
+++ b/templates/snaps.php
@@ -135,14 +135,18 @@ if (0) {
                        <a href="<?php echo 
$data[$major][$minor]['files']['php']['url']; ?>">Zip</a>
                        [<?php echo 
bytes2string($data[$major][$minor]['files']['php']['size']); ?>]<br />
                </li>
+<?php if (isset($data[$major][$minor]['files']['debug'])):?>
                <li>
                        <a href="<?php echo 
$data[$major][$minor]['files']['debug']['url']; ?>">Debug Pack</a>
                        [<?php echo 
bytes2string($data[$major][$minor]['files']['debug']['size']); ?>]<br />
                </li>
+<?php endif?>
+<?php if (isset($data[$major][$minor]['files']['devel'])):?>
                <li>
                        <a href="<?php echo 
$data[$major][$minor]['files']['devel']['url']; ?>">Development package (SDK to 
develop PHP extensions)</a>
                        [<?php echo 
bytes2string($data[$major][$minor]['files']['devel']['size']); ?>]<br />
                </li>
+<?php endif?>
 <?php } else { ?>
 Build missing or in progress.


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to