TS-website is not yet compatible with PHP 8

This commit is contained in:
Wruczek 2021-10-16 01:54:47 +02:00
parent 832bfbbc12
commit 1d03800336
1 changed files with 4 additions and 3 deletions

View File

@ -83,12 +83,13 @@ if(!empty($_POST["allow-metrics-checkbox"])) {
<?php
function checkRequirements() {
// PHP version - 7.2.0 minimum
// PHP version - 7.2.0 min, but older than 8.0
// ts3phpframework needs to release a version with https://git.io/JKlRx for PHP 8 support
{
$result = PHP_VERSION_ID < 70200 ? 2 : 0;
$result = (PHP_VERSION_ID < 70200 || PHP_VERSION_ID > 80000) ? 2 : 0;
showCheckResult(
"PHP 7.2.0+",
"PHP 7.2.0 - 7.4",
$result,
"Current PHP version: " . PHP_VERSION
);