cvs: php-windows-web /include listing.php
| From: | Pierre-Alain Joye | Date: | Mon, 15 Dec 2008 12:20:48 +0000 |
| Subject: | cvs: php-windows-web /include listing.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-3323@lists.php.net to get a copy of this message | ||
pajoye Mon Dec 15 12:20:48 2008 UTC
Modified files:
/php-windows-web/include listing.php
Log:
- display test-pack download links
http://cvs.php.net/viewvc.cgi/php-windows-web/include/listing.php?r1=1.2&r2=1.3&diff_format=u
Index: php-windows-web/include/listing.php
diff -u php-windows-web/include/listing.php:1.2 php-windows-web/include/listing.php:1.3
--- php-windows-web/include/listing.php:1.2 Mon Dec 15 10:25:20 2008
+++ php-windows-web/include/listing.php Mon Dec 15 12:20:47 2008
@@ -40,7 +40,8 @@
foreach (glob('*.zip') as $file) {
$lower_file = strtolower($file);
- if (strpos($lower_file, '-debug-pack-') === false && strpos($lower_file,
'-src') === false) {
+ if (strpos($lower_file, '-debug-pack-') === false && strpos($lower_file,
'-src') === false
+ && strpos($lower_file, '-test-pack-') === false) {
$basename = str_replace('.zip', '', $file);
$elm = explode('-', $basename);
if (count($elm) > 5) {
@@ -140,11 +141,28 @@
}
if (!array_key_exists($point_version, $releases)) {
+
+
+
$releases[$point_version] = array(
'size' => bytes2string(filesize('php-' . $point_version .
DIRECTORY_SEPARATOR . 'php-' . $point_version . '-src-latest.zip')),
'file' => 'php-' . $point_version . '/php-' . $point_version
. '-src-latest.zip',
);
+
+ $testpack_file = 'php-test-pack-' . $point_version . '-latest.zip';
+ if (file_exists($testpack_file)) {
+ if (file_exists($testpack_file)) {
+ $releases[$point_version]['test-pack'] = array(
+ 'file' => $testpack_file,
+ 'size' => bytes2string(filesize($testpack_file)),
+
+ );
+
+ }
+ }
+
}
+
$releases[$point_version][$intermediate_version] = array(
'mtime' => $mtime,
'size' => bytes2string(filesize('php-' . $full_version .
'-latest.zip')),
@@ -166,6 +184,7 @@
);
}
+
$installer_file = 'php-' . $full_version . '-latest.msi';
if (file_exists($installer_file)) {
$releases[$point_version][$intermediate_version]['installer'] = array(
@@ -248,9 +267,15 @@
<p class="news-date"></p>
<p>
<a href="' . $path . $version['file'] . '">Download source
code</a> [' . $version['size'] . ']
- </p>
- <div>
- ';
+ </p>';
+
+ if (isset($version['test-pack'])) {
+ $str .= '<p>
+ <a href="' . $path . $version['test-pack']['file'] .
'">Download Tests packages</a> [' .
$version['test-pack']['size'] . ']
+ </p>
+ ';
+ }
+ $str .= '<div';
unset($version['size'], $version['file']);
foreach($version_order as $v) {
if (isset($version[$v])) {
@@ -324,6 +349,7 @@
<span class="md5sum">sha1:
'.$build_version['debug-pack']['sha1'].'</span>
';
}
+
if (!$release) {
$ret .= '<blockquote>
<strong>Logs:</strong>