TS-website is not yet compatible with PHP 8
This commit is contained in:
parent
832bfbbc12
commit
1d03800336
|
@ -83,12 +83,13 @@ if(!empty($_POST["allow-metrics-checkbox"])) {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
function checkRequirements() {
|
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(
|
showCheckResult(
|
||||||
"PHP 7.2.0+",
|
"PHP 7.2.0 - 7.4",
|
||||||
$result,
|
$result,
|
||||||
"Current PHP version: " . PHP_VERSION
|
"Current PHP version: " . PHP_VERSION
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue