Hi all

On 2/15/07, Hannes Magnusson <[EMAIL PROTECTED]> wrote:
Hi

On 2/15/07, Antony Dovgal <[EMAIL PROTECTED]> wrote:
> On 02/15/2007 05:38 PM, Antony Dovgal wrote:
> > Hello all.
> >
> > Now that the conference ads are gone, I think we should add release 
candidates announcements to the first page of php.net.
> > This will add some more attention to the RCs and (I hope) will help users 
to help us in making the releases more stable.
> > Any objections? I hope none.
> >
>
> Just to quote Greg here:
>
> <CelloG> you could solve Steph's concern by putting the "testing release" 
block in a different place
> <CelloG> put the official current release block in the upper left
> <CelloG> and the testing block down on the left a little lower
>
> This sounds like the way to go.
>
> We also can add a detailed description of what is release candidate, what's 
the difference comparing to a release etc. to qa.php.net
> and add a link to that page in the block. Actually, I'll try to write 
something tomorrow.
>
> Any more volunteers to patch php.net?
> Hannes? You seem to be the most active person in that area atm =)

As I am all for the idea I will definitely prepare a patch

-Hannes


So, here is my left handed pet dwarf turtle, born in December, idea:
It doesn't really see the point of scattering boxes all around. One
box listing current php5 + php4 version and the current release
candidates should be all that we need.
The RC links obviously won't be direct links on the tarballs so the
user still has a chance of understanding "wth is RC?".

The release candidate links will point to qa.php.net/#v5 & #v4 where
we'll add a big fat box explaining the concept of release _candidate_.
The stable links then point to php.net/downloads.php#v5 & #v4

The only "major" change is how RM will post a new release; this patch
expects all current (stable and (if any) rc) in include/version.inc

See attached, simplified, patch & screenshot:
http://home.oslo.nith.no/~maghan/releases.png

We can then provide a Atom+SLE feed with latest versions with direct
links to the stable releases and a link to qa.php.net with RCs....


If I am totally off base here, scream :)

-Hannes
Index: index.php
===================================================================
RCS file: /repository/phpweb/index.php,v
retrieving revision 1.864
diff -u -r1.864 index.php
--- index.php   14 Feb 2007 18:27:02 -0000      1.864
+++ index.php   16 Feb 2007 09:26:46 -0000
@@ -42,6 +42,7 @@
 $_SERVER['BASE_PAGE'] = 'index.php';
 include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
 include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
 
 // This goes to the left sidebar of the front page
 $SIDEBAR_DATA = '
@@ -136,8 +137,40 @@
     }
 }
 
+list($PHP_5_STABLE, ) = each($RELEASES[5]);
+list($PHP_4_STABLE, ) = each($RELEASES[4]);
+
+$rel = <<< EOT
+  <h4 class="eventmonth">Releases</h4>
+  <span class="stable">Stable releases</span>
+  <ol id="releases">
+    <li class="php5"><a href="/downloads.php#v5">Current PHP 5 Stable: <span 
class="release">$PHP_5_STABLE</span></a></li>
+    <li class="php5"><a href="/downloads.php#v4">Current PHP 4 Stable: <span 
class="release">$PHP_4_STABLE</span></a></li>
+  </ol>\n
+EOT;
+
+if (count($RELEASES[5]>1)) {
+    list($PHP_5_RC, ) = each($RELEASES[5]);
+}
+if (count($RELEASES[4]>1)) {
+    list($PHP_4_RC, ) = each($RELEASES[4]);
+}
+if (isset($PHP_5_RC) || isset($PHP_4_RC)) {
+    $rc  = '  <span class="rc">Release Candidates</span>' . "\n";
+    $rc .= '  <ol id="rc">' ."\n";
+    if (isset($PHP_5_RC)) {
+        $rc .= '    <li class="php5"><a href="http://qa.php.net/#v5";>Current 
PHP 5 RC: <span class="release">' .$PHP_5_RC. "</span></a></li>\n";
+    }
+    if (isset($PHP_4_RC)) {
+        $rc .= '    <li class="php4"><a href="http://qa.php.net/#v4";>Current 
PHP 4 RC: <span class="release">' .$PHP_4_RC. "</span></a></li>\n";
+    }
+    $rc .= "  </ol>\n";
+    $rel .= $rc;
+}
+
+$rel = '<div id="releaseBox">' .$rel. "</div>\n";
 // Prepend mirror image to sidebar text
-$RSIDEBAR_DATA = $MIRROR_IMAGE . $RSIDEBAR_DATA;
+$RSIDEBAR_DATA = $MIRROR_IMAGE . $rel . $RSIDEBAR_DATA;
 
 // Write out common header
 site_header("Hypertext Preprocessor", array('onload' => 'boldEvents();', 
'headtags' => '<link rel="alternate" type="application/rss+xml" title="PHP: 
Hypertext Preprocessor" href="' . $MYSITE . 'news.rss" />'));
Index: downloads.php
===================================================================
RCS file: /repository/phpweb/downloads.php,v
retrieving revision 1.275
diff -u -r1.275 downloads.php
--- downloads.php       14 Feb 2007 15:50:20 -0000      1.275
+++ downloads.php       16 Feb 2007 09:26:46 -0000
@@ -2,6 +2,7 @@
 // $Id: downloads.php,v 1.275 2007/02/14 15:50:20 derick Exp $
 $_SERVER['BASE_PAGE'] = 'downloads.php';
 include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
 
 // Try to make this page non-cached
 header_nocache();
@@ -74,43 +75,32 @@
 ?>
 
 <a name="v5"></a>
-<h1>PHP 5.2.1</h1>
+<h1>PHP <?php list($v, $a) = each($RELEASES[5]); echo $v ?></h1>
 
 <h2>Complete Source Code</h2>
 <ul>
- <li>
-  <?php download_link('php-5.2.1.tar.bz2', 'PHP 5.2.1 (tar.bz2)'); ?> - 08 Feb 
2007<br />
-  <span class="md5sum">md5: 261218e3569a777dbd87c16a15f05c8d</span>
- </li>
- <li>
-  <?php download_link('php-5.2.1.tar.gz', 'PHP 5.2.1 (tar.gz)'); ?> - 08 Feb 
2007<br />
-  <span class="md5sum">md5: 604eaee2b834bb037d2c83e53e300d3f</span>
- </li>
+<?php
+foreach($a["source"] as $rel) {
+    echo " <li>\n  ";
+    download_link($rel["package"], $rel["name"]); echo ' - ' .$rel["date"]. 
"<br />\n";
+    echo '  <span class="md5sum">md5: ' .$rel["md5"]. "</span>\n";
+    (isset($rel["note"]) ? '<p><strong>Note:</strong>' .$rel["note"] . '</p>': 
"");
+    echo " </li>\n";
+}
+?>
 </ul>
 
 <h2>Windows Binaries</h2>
 <ul>
- <li>
-  <?php download_link('php-5.2.1-Win32.zip', 'PHP 5.2.1 zip package'); ?> - 08 
Feb 2007<br />
-  <span class="md5sum">md5: 682dd66fb03c7dd24c522f474e1b04b6</span>
- </li>
- <li>
-  <?php download_link('php-5.2.1-win32-installer.msi', 'PHP 5.2.1 installer'); 
?> - 12 Feb 2007<br />
-  <span class="md5sum">md5: f0a1445f4adfdc2e00a81b2eb788be5c</span>
-  <p><strong>Note:</strong> This file was updated February 12th to fix 
problems when upgrading from previous PHP versions.</p>
- </li>
- <li>
-  <?php download_link('pecl-5.2.1-Win32.zip', 'PECL 5.2.1 Win32 binaries'); ?> 
- 08 Feb 2007<br />
-  <span class="md5sum">md5: dc8b394146faf7effa6f26df02e8e534</span>
- </li>
- <li>
-  <?php download_link('php-5.2.1-nts-Win32.zip', 'PHP 5.2.1 Non-thread-safe 
Win32 binaries'); ?> - 08 Feb 2007<br />
-  <span class="md5sum">md5: 815c8c61af58fffdc34d34c24310ffe2</span>
- </li>
- <li>
-  <?php download_link('pecl-5.2.1-nts-Win32.zip', 'PECL 5.2.1 Non-thread-safe 
Win32 binaries'); ?> - 08 Feb 2007<br />
-  <span class="md5sum">md5: ffd78a31a704d68c8adadc9288261583</span>
- </li>
+<?php
+foreach($a["windows"] as $rel) {
+    echo " <li>\n  ";
+    download_link($rel["package"], $rel["name"]); echo ' - ' .$rel["date"]. 
"<br />\n";
+    echo '  <span class="md5sum">md5: ' .$rel["md5"]. "</span>\n";
+    echo isset($rel["note"]) ? '<p><strong>Note:</strong> ' .$rel["note"] . 
'</p>': "";
+    echo " </li>\n";
+}
+?>
 </ul>
 
 <p>
@@ -123,18 +113,19 @@
 
 
 <a name="v4"></a>
-<h1>PHP 4.4.5</h1>
+<h1>PHP <?php list($v, $a) = each($RELEASES[4]); echo $v ?></h1>
 
 <h2>Complete Source Code</h2>
 <ul>
- <li>
-  <?php download_link('php-4.4.5.tar.bz2','PHP 4.4.5 (tar.bz2)'); ?> - 14 Feb 
2007<br />
-  <span class="md5sum">md5: bf61d557c82962dc9533f6ef35283d4c</span>
- </li>
- <li>
-  <?php download_link('php-4.4.5.tar.gz', 'PHP 4.4.5 (tar.gz)');  ?> - 14 Feb 
2007<br />
-  <span class="md5sum">md5: cfc1d47cdc7c1bfd27666abb8fe97a45</span>
- </li>
+<?php
+foreach($a["source"] as $rel) {
+    echo " <li>\n  ";
+    download_link($rel["package"], $rel["name"]); echo ' - ' .$rel["date"]. 
"<br />\n";
+    echo '  <span class="md5sum">md5: ' .$rel["md5"]. "</span>\n";
+    (isset($rel["note"]) ? '<p><strong>Note:</strong>' .$rel["note"] . '</p>': 
"");
+    echo " </li>\n";
+}
+?>
 </ul>
 
 <p>
@@ -157,13 +148,15 @@
  </li>
 -->
 
- <li>
-  <?php download_link('php-4.4.5-Win32.zip', 'PHP 4.4.5 zip package'); ?> - 14 
Feb 2007<br />
-  (CGI binary plus server API versions for Apache, Apache2 (experimental),
-  ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions
-  included, packaged as zip)<br />
-  <span class="md5sum">md5: c4197ede538cc911b04cdf3d7c0e37f1</span>
- </li>
+<?php
+foreach($a["windows"] as $rel) {
+    echo " <li>\n  ";
+    download_link($rel["package"], $rel["name"]); echo ' - ' .$rel["date"]. 
"<br />\n";
+    echo '  <span class="md5sum">md5: ' .$rel["md5"]. "</span>\n";
+    echo isset($rel["note"]) ? '<p><strong>Note:</strong> ' .$rel["note"] . 
'</p>': "";
+    echo " </li>\n";
+}
+?>
 </ul>
 
 <?php site_footer(); ?>
Index: styles/site.css
===================================================================
RCS file: /repository/phpweb/styles/site.css,v
retrieving revision 1.38
diff -u -r1.38 site.css
--- styles/site.css     14 Feb 2007 15:37:46 -0000      1.38
+++ styles/site.css     16 Feb 2007 09:26:47 -0000
@@ -51,6 +51,36 @@
        border: 0px;
 }
 
+#releaseBox {
+       padding: 2px;
+       border: 1px dotted #000;
+       margin-bottom: 10px;
+}
+#releaseBox h4 {
+       border-style: solid;
+       border-color: black;
+       border-width: 0px 0px 1px 0px;
+       background-color: #d3d3d3;
+       padding: 2px;
+       margin: 0;
+}
+ol#releases {
+       margin: 0 0 10px 0;
+       padding: 0;
+}
+ol#rc {
+       margin: 0;
+       padding: 0;
+}
+ol#releases li, ol#rc li{
+       list-style-type: none;
+       display: inline;
+       font-size: smaller;
+}
+ol#releases li span.release {
+       font-weight: bold;
+}
+
 /* {{{ Errors, warning, tips classes */
 p.formerror, p.warn {
        border: 1px solid #666600;
diff -uN foo/version.inc include/version.inc
--- foo/version.inc     Thu Jan  1 01:00:00 1970
+++ include/version.inc Fri Feb 16 09:38:17 2007
@@ -0,0 +1,110 @@
+<?php
+$RELEASES = array(
+    5 => array(
+        "5.2.1" => array(
+            "source" => array(
+                array(
+                    "package" => "php-5.2.1.tar.bz2",
+                    "name"    => "PHP 5.2.1 (tar.bz2)",
+                    "md5"     => "261218e3569a777dbd87c16a15f05c8d",
+                    "date"    => "08 Feb 2007",
+                ),
+                array(
+                    "package" => "php-5.2.1.tar.gz",
+                    "name"    => "PHP 5.2.1 (tar.gz)",
+                    "md5"     => "604eaee2b834bb037d2c83e53e300d3f",
+                    "date"    => "08 Feb 2007",
+                )
+            ),
+            "windows" => array(
+                array(
+                    "package" => "php-5.2.1-Win32.zip",
+                    "name"    => "PHP 5.2.1 zip package",
+                    "md5"     => "682dd66fb03c7dd24c522f474e1b04b6",
+                    "date"    => "08 Feb 2007",
+                ),
+                array(
+                    "package" => "php-5.2.1-win32-installer.msi",
+                    "name"    => "PHP 5.2.1 installer",
+                    "md5"     => "f0a1445f4adfdc2e00a81b2eb788be5c",
+                    "date"    => "12 Feb 2007",
+                    "note"    => "This file was updated February 12th to fix 
problems when upgrading from previous PHP versions.",
+                ),
+                array(
+                    "package" => "pecl-5.2.1-Win32.zip",
+                    "name"    => "PECL 5.2.1 Win32 binaries",
+                    "md5"     => "dc8b394146faf7effa6f26df02e8e534",
+                    "date"    => "08 Feb 2007",
+                ),
+                array(
+                    "package" => "php-5.2.1-nts-Win32.zip",
+                    "name"    => "PHP 5.2.1 Non-thread-safe Win32 binaries",
+                    "md5"     => "815c8c61af58fffdc34d34c24310ffe2",
+                    "date"    => "08 Feb 2007",
+                ),
+                array(
+                    "package" => "pecl-5.2.1-nts-Win32.zip",
+                    "name"    => "PECL 5.2.1 Non-thread-safe Win32 binaries",
+                    "md5"     => "ffd78a31a704d68c8adadc9288261583",
+                    "date"    => "08 Feb 2007",
+                ),
+            ),
+        ),
+        "5.2.2RC1" => array(),
+    ),
+    4 => array(
+        "4.4.5" => array(
+            "source" => array(
+                array(
+                    "package" => "php-4.4.5.tar.bz2",
+                    "name"    => "PHP 4.4.5 (tar.bz2)",
+                    "md5"     => "bf61d557c82962dc9533f6ef35283d4c",
+                    "date"    => "14 Feb 2007",
+                ),
+                array(
+                    "package" => "php-4.4.5.tar.gz",
+                    "name"    => "PHP 4.4.5 (tar.gz)",
+                    "md5"     => "cfc1d47cdc7c1bfd27666abb8fe97a45",
+                    "date"    => "14 Feb 2007",
+                ),
+            ),
+            "windows" => array(
+                array(
+                    "package" => "php-4.4.5-Win32.zip",
+                    "name"    => "PHP 4.4.5 zip package",
+                    "md5"     => "c4197ede538cc911b04cdf3d7c0e37f1",
+                    "date"    => "14 Feb 2007",
+                    "note"    => "(CGI binary plus server API versions for 
Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support 
built-in, many extensions included, packaged as zip)<br />",
+                ),
+            ),
+        ),
+        "4.4.6RC1" => array(),
+    ),
+);
+
+if (isset($_SERVER["BASE_PAGE"])) {
+    return;
+}
+
+echo "<version>\n";
+foreach ($RELEASES as $major => $array) {
+    printf("\t<releases major='%1d'>\n", $major);
+    foreach ($array as $version => $a) {
+        printf("\t\t<version name='%s'>\n", $version);
+        foreach ($a as $type => $b) {
+            printf("\t\t\t<type name='%s'>\n", $type);
+            foreach($b as $package) {
+                print "\t\t\t\t<release>\n";
+                foreach($package as $k => $v) {
+                    printf("\t\t\t\t\t" . '<%s>%s</%1$s>' . "\n", $k, $v);
+                }
+                print "\t\t\t\t</release>\n";
+            }
+            print "\t\t\t</type>\n";
+        }
+        print "\t\t</version>\n";
+    }
+    print "\t</releases>\n";
+}
+echo "</versions>\n";
+
-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to