Commit: 876294ddc417ef30d6603075c00fd75ec7206133 Author: philip <[email protected]> Fri, 6 May 2016 14:52:07 -0700 Parents: 018165652896fa31609c63947165f48275e043f4 Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=876294ddc417ef30d6603075c00fd75ec7206133 Log: Added PHP 7.0 Changed paths: M manage/mirrors.php Diff: diff --git a/manage/mirrors.php b/manage/mirrors.php index ad4ad80..f1a9465 100644 --- a/manage/mirrors.php +++ b/manage/mirrors.php @@ -329,6 +329,7 @@ function page_mirror_list($moreinfo = false) '54' => 0, '55' => 0, '56' => 0, + '70' => 0, 'other' => 0, ); // Query the whole mirror list and display all mirrors. The query is @@ -448,6 +449,8 @@ function page_mirror_list($moreinfo = false) $php_versions['55']++; } elseif (preg_match('/^5.6/',$row['phpversion'])) { $php_versions['56']++; + } elseif (preg_match('/^7.0/',$row['phpversion'])) { + $php_versions['70']++; } else { $php_versions['other']++; } @@ -510,6 +513,7 @@ function page_mirror_list($moreinfo = false) $php54_percent = sprintf('%.1f%%',($php_versions['54'] / $stats['mirrors']) * 100); $php55_percent = sprintf('%.1f%%',($php_versions['55'] / $stats['mirrors']) * 100); $php56_percent = sprintf('%.1f%%',($php_versions['56'] / $stats['mirrors']) * 100); + $php70_percent = sprintf('%.1f%%',($php_versions['70'] / $stats['mirrors']) * 100); $php_other_versions = sprintf('%.1f%%',($php_versions['other'] / $stats['mirrors']) * 100); $stats['has_stats_percent'] = sprintf('%.1f%%', $stats['has_stats'] / $stats['mirrors'] * 100); @@ -577,6 +581,9 @@ $statusscreen = <<< EOS <dt>PHP 5.6</dt> <dd>{$php56_percent}</dd> + <dt>PHP 7.0</dt> + <dd>{$php70_percent}</dd> + <dt>Other</dt> <dd>{$php_other_versions}</dd> </dl> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
