DevHeads.net

com web/php: Introduce <php:tag/> to releases feed: include/version.inc releases/feed.php

Link: <a href="http://git.php.net/?p=web/php.git;a=commitdiff;h=0e59effc24c975875ed06418bc2a4b98b4ee06d2" title="http://git.php.net/?p=web/php.git;a=commitdiff;h=0e59effc24c975875ed06418bc2a4b98b4ee06d2">http://git.php.net/?p=web/php.git;a=commitdiff;h=0e59effc24c975875ed0641...</a>

Log:
Introduce <php:tag/> to releases feed

Changed paths:
M include/version.inc
M releases/feed.php

Diff:
diff --git a/include/version.inc b/include/version.inc
index 696bac6..a141da5 100644
--- a/include/version.inc
+++ b/include/version.inc
@@ -21,6 +21,7 @@ $PHP_7_3_RC_DATE = "16 May 2019";

$PHP_7_3_VERSION = "7.3.6";
$PHP_7_3_DATE = "30 May 2019";
+$PHP_7_3_TAGS = ['security']; // Set to ['security'] for security releases.
$PHP_7_3_SHA256 = array(
"tar.bz2" => "1e5ac8700154835c0910e3a814517da9b87bb4a82cc7011fea1a82096b6f6f77",
"tar.gz" => "72fbf223ff8659a61eed08eebffb4ede0256e7a69d2151ae24affa5377b70bb8",
@@ -33,6 +34,7 @@ $PHP_7_2_RC_DATE = "18 Apr 2019";

$PHP_7_2_VERSION = "7.2.19";
$PHP_7_2_DATE = "30 May 2019";
+$PHP_7_2_TAGS = ['security']; // Set to ['security'] for security releases.
$PHP_7_2_SHA256 = array(
"tar.bz2" => "ebd0b1f375fe07ed4925acc213d2f5ef76a61bd5de174e7b666b98421a90a099",
"tar.gz" => "1cd2266a058f3224d3cba594540045542606996f026eeef96747f27f6b3d22b6",
@@ -45,6 +47,7 @@ $PHP_7_1_RC_DATE = "25 Oct 2018";

$PHP_7_1_VERSION = "7.1.30";
$PHP_7_1_DATE = "30 May 2019";
+$PHP_7_1_TAGS = ['security'];
$PHP_7_1_SHA256 = array(
'tar.bz2' => '664850774fca19d2710b9aa35e9ae91214babbde9cd8d27fd3479cc97171ecb3',
'tar.gz' => 'a604edf85d5dfc28e6ff3016dad3954c50b93db69afc42295178b4fdf42e026c',
@@ -55,6 +58,7 @@ $RELEASES = array(
7 => array(
$PHP_7_3_VERSION => array(
"announcement" => true,
+ "tags" => $PHP_7_3_TAGS,
"source" => array(
array(
"filename" => "php-$PHP_7_3_VERSION.tar.bz2",
@@ -78,6 +82,7 @@ $RELEASES = array(
),
$PHP_7_2_VERSION => array(
"announcement" => true,
+ "tags" => $PHP_7_2_TAGS,
"source" => array(
array(
"filename" => "php-$PHP_7_2_VERSION.tar.bz2",
@@ -101,6 +106,7 @@ $RELEASES = array(
),
$PHP_7_1_VERSION => array(
"announcement" => true,
+ "tags" => $PHP_7_1_TAGS,
"source" => array(
array(
"filename" => "php-$PHP_7_1_VERSION.tar.bz2",
diff --git a/releases/feed.php b/releases/feed.php
index c76bbf4..a6116b9 100644
--- a/releases/feed.php
+++ b/releases/feed.php
@@ -66,6 +66,12 @@ XML;

$updated = date(DATE_ATOM, max($maxtime));

+ if (isset($release['tags'])) {
+ foreach ($release['tags'] as $tag) {
+ echo ' <php:tag>', htmlspecialchars($tag), "</php:tag>\n";
+ }
+ }
+
echo <<< XML
<updated>{$updated}</updated>
<content src="{$id}" type="application/xhtml+xml"/>