mw.special.contributions: Do not infuse the date input while it has user focus
[lhc/web/wiklou.git] / includes / PHPVersionCheck.php
index 77c725f..cfe889f 100644 (file)
  */
 class PHPVersionCheck {
        /* @var string The number of the MediaWiki version used */
-       var $mwVersion = '1.31';
+       var $mwVersion = '1.32';
        var $functionsExtensionsMapping = array(
                'mb_substr'   => 'mbstring',
-               'utf8_encode' => 'xml',
+               'xml_parser_create' => 'xml',
                'ctype_digit' => 'ctype',
                'json_decode' => 'json',
                'iconv'       => 'iconv',
@@ -54,7 +54,6 @@ class PHPVersionCheck {
         *   - api.php
         *   - mw-config/index.php
         *   - cli
-        * @return $this
         */
        function setEntryPoint( $entryPoint ) {
                $this->entryPoint = $entryPoint;
@@ -102,8 +101,6 @@ class PHPVersionCheck {
 
        /**
         * Displays an error, if the installed php version does not meet the minimum requirement.
-        *
-        * @return $this
         */
        function checkRequiredPHPVersion() {
                $phpInfo = $this->getPHPInfo();
@@ -118,7 +115,8 @@ 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"
@@ -151,8 +149,6 @@ 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' ) ) {
@@ -179,8 +175,6 @@ HTML;
 
        /**
         * Displays an error, if a PHP extension does not exist.
-        *
-        * @return $this
         */
        function checkExtensionExistence() {
                $missingExtensions = array();