X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=blobdiff_plain;f=includes%2FPHPVersionCheck.php;h=1a639c7d51fbd59904b7706b95063c093ba41f02;hb=1d55a80d22ecb52561006408e14cf35ac367be1e;hp=46452d9c82c1ea2536f7e71d89eddca1d4c53c04;hpb=48f931b9cb0f4b53e84cfc090e4313f71a130941;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 46452d9c82..1a639c7d51 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -30,7 +30,7 @@ class PHPVersionCheck { var $mwVersion = '1.31'; var $functionsExtensionsMapping = array( 'mb_substr' => 'mbstring', - 'utf8_encode' => 'xml', + 'xml_parser_create' => 'xml', 'ctype_digit' => 'ctype', 'json_decode' => 'json', 'iconv' => 'iconv', @@ -93,8 +93,8 @@ class PHPVersionCheck { 'implementation' => 'PHP', 'version' => PHP_VERSION, 'vendor' => 'the PHP Group', - 'upstreamSupported' => '5.6.0', - 'minSupported' => '5.5.9', + 'upstreamSupported' => '7.2.0', + 'minSupported' => '7.0.13', 'upgradeURL' => 'https://secure.php.net/downloads.php', ); } @@ -115,11 +115,12 @@ class PHPVersionCheck { . "{$otherInfo['minSupported']}, you are using {$phpInfo['implementation']} " . "{$phpInfo['version']}."; - $longText = "Error: You might be using an older {$phpInfo['implementation']} version. \n" + $longText = "Error: You might be using an older {$phpInfo['implementation']} version " + . "({$phpInfo['implementation']} {$phpInfo['version']}). \n" . "MediaWiki $this->mwVersion needs {$phpInfo['implementation']}" . " $minimumVersion or higher or {$otherInfo['implementation']} version " . "{$otherInfo['minSupported']}.\n\nCheck if you have a" - . " newer php executable with a different name, such as php5.\n\n"; + . " newer php executable with a different name.\n\n"; // phpcs:disable Generic.Files.LineLength $longHtml = <<download an older version of MediaWiki from our website. - See ourcompatibility page + See our compatibility page for details of which versions are compatible with prior versions of {$phpInfo['implementation']}. HTML; // phpcs:enable Generic.Files.LineLength