com web/bugs: PHP6 was a myth: www/lstats.php

From: Date: Mon, 24 Jul 2017 18:14:08 +0000
Subject: com web/bugs: PHP6 was a myth: www/lstats.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26231@lists.php.net to get a copy of this message
Commit: b6f8cdfef8170c0d1c0d16c413862cac94ad4512 Author: Kalle Sommer Nielsen <kalle@php.net> 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"; }

« previous php.webmaster (#26231) next »