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',
* - api.php
* - mw-config/index.php
* - cli
- * @return $this
*/
function setEntryPoint( $entryPoint ) {
$this->entryPoint = $entryPoint;
'version' => PHP_VERSION,
'vendor' => 'the PHP Group',
'upstreamSupported' => '5.6.0',
- 'minSupported' => '5.5.9',
+ 'minSupported' => '7.0.0',
'upgradeURL' => 'https://secure.php.net/downloads.php',
);
}
/**
* Displays an error, if the installed php version does not meet the minimum requirement.
- *
- * @return $this
*/
function checkRequiredPHPVersion() {
$phpInfo = $this->getPHPInfo();
. "{$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 = <<<HTML
/**
* Displays an error, if the vendor/autoload.php file could not be found.
- *
- * @return $this
*/
function checkVendorExistence() {
if ( !file_exists( dirname( __FILE__ ) . '/../vendor/autoload.php' ) ) {
/**
* Displays an error, if a PHP extension does not exist.
- *
- * @return $this
*/
function checkExtensionExistence() {
$missingExtensions = array();