PHP
+ +"; +?> +Revision:
+ +Source: Download source code []
+ + + + ++
+
-
+
+
-
+ Zip
+ []
+
+ -
+ Debug Pack
+ []
+
+ -
+ Development package (SDK to develop PHP extensions)
+ []
+
+
+
Added: web/php-windows/trunk/script/generate_snap_page.bat =================================================================== --- web/php-windows/trunk/script/generate_snap_page.bat (rev 0) +++ web/php-windows/trunk/script/generate_snap_page.bat 2011-04-30 13:58:20 UTC (rev 310664) @@ -0,0 +1 @@ +c:\PHP5.3\php.exe c:\domains\windows.php.net\script\generate_snap_page.php Added: web/php-windows/trunk/script/generate_snap_page.php =================================================================== --- web/php-windows/trunk/script/generate_snap_page.php (rev 0) +++ web/php-windows/trunk/script/generate_snap_page.php 2011-04-30 13:58:20 UTC (rev 310664) @@ -0,0 +1,85 @@ + NULL); + } +} +$has_new_revision = FALSE; +$force = true; + +foreach ($active_branches as $branch_name) { + echo "processing $branch_name\n"; + + $branch_dir = SNAPS_DIR . 'php-' . $branch_name; + $branch_url = SNAPS_URL . 'php-' . $branch_name; + + echo $branch_dir . '/php-' . $branch_name . '.json' . "\n"; + if (!file_exists($branch_dir . '/php-' . $branch_name . '.json')) { + echo "cannot read json data\n"; + continue; + } else { + echo "processing\n"; + } + $contents = file_get_contents($branch_dir . '/php-' . $branch_name . '.json'); + $new = json_decode($contents, true); + if ($force || ($new['revision_last'] != $data[$branch_name]['revision_last'])) { + echo "new revision\n"; + $has_new_revision = true; + $data[$branch_name] = $new; + } else { + echo "no new revision\n"; + echo "**********************\n\n"; + continue; + } + $rev_last = $data[$branch_name]['revision_last']; + $rev_dir = $branch_dir . '/r' . $rev_last; + $rev_url = $branch_url . '/r' . $rev_last; + foreach ($data[$branch_name]['builds'] as $build_name) { + echo "processing $build_name...\n"; + $build_json = file_get_contents($rev_dir . '/' . $build_name . '.json'); + $build = json_decode($build_json); + $files = array(); + if ($build->has_php_pkg) { + $files['php']['url'] = $rev_url . '/php-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'; + $files['php']['size'] = filesize($rev_dir . '/php-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'); + } + if ($build->has_debug_pkg) { + $files['debug']['url'] = $rev_url . '/php-debug-pack-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'; + $files['debug']['size'] = filesize($rev_dir . '/php-debug-pack-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'); + echo $rev_dir . '/php-debug-pack-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'; + } + if ($build->has_devel_pkg) { + $files['devel']['url'] = $rev_url . '/php-devel-pack-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'; + $files['devel']['size'] = filesize($rev_dir . '/php-devel-pack-' . $branch_name . '-' . $build_name . '-r' . $rev_last . '.zip'); + } + $data[$branch_name][$build_name]['files'] = $files; + } + echo "**********************\n\n"; +} + +if (0&& !$has_new_revision) { + echo "Done.\n"; + exit(); +} +file_put_contents($data_path, json_encode($data)); + + +$title_page = 'Binaries and sources Snapshots'; +ob_start(); +include __DIR__ . '/../templates/snaps.php'; +$snaps = ob_get_contents(); +ob_end_clean(); + +file_put_contents(DOCROOT . '/snapshot.html', $snaps); Added: web/php-windows/trunk/templates/snaps.php =================================================================== --- web/php-windows/trunk/templates/snaps.php (rev 0) +++ web/php-windows/trunk/templates/snaps.php 2011-04-30 13:58:20 UTC (rev 310664) @@ -0,0 +1,146 @@ + array( + 'nts-windows-vc9-x86', + 'ts-windows-vc9-x86' + ), + 'trunk' => array( + 'nts-windows-vc9-x86', + 'ts-windows-vc9-x86' + ) + ); + +$labels = array( + 'nts-windows-vc9-x86' => 'VC9 x86 Non Thread Safe', + 'ts-windows-vc9-x86' => 'VC9 x86 Thread Safe', + 'nts-windows-vc9-x64' => 'VC9 x64 Non Thread Safe', + 'nts-windows-vc9-x64' => 'VC9 x64 Thread Safe', + +); + +include TPL_PATH . 'header.php'; +include TPL_PATH . 'news_line.php'; + +?> +
Revision:
+ +Source: Download source code []
+ + + + ++
+
+ +