Commit: b6f8cdfef8170c0d1c0d16c413862cac94ad4512 Author: Kalle Sommer Nielsen <[email protected]> Mon, 24 Jul 2017 20:14:08 +0200 Parents: d04d379e7c8f808dea32f68ea77c9f2264945720 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=b6f8cdfef8170c0d1c0d16c413862cac94ad4512 Log: PHP6 was a myth Changed paths: M www/lstats.php Diff: diff --git a/www/lstats.php b/www/lstats.php index d6980f9..4ae69a5 100644 --- a/www/lstats.php +++ b/www/lstats.php @@ -34,10 +34,11 @@ function get_status_count ($status, $category = '') } // Input -if (!isset($_GET['phpver'])) { - echo "<h3>Bug stats for both <a href='lstats.php?phpver=5'>PHP 5</a> and <a href='lstats.php?phpver=6'>PHP 6</a>:</h3>\n<pre>\n"; +$phpver = (isset($_GET['phpver']) ? (int) $_GET['phpver'] : false); + +if (!$phpver || ($phpver !== 5 && $phpver !== 7)) { + echo "<h3>Bug stats for both <a href='lstats.php?phpver=5'>PHP 5</a> and <a href='lstats.php?phpver=7'>PHP 7</a>:</h3>\n<pre>\n"; } else { - $phpver = (int) $_GET['phpver']; echo "<h3>Bug stats for PHP $phpver:</h3>\n<pre>\n"; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
