X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FPHPVersionCheck.php;h=bf138c4b1ea6a0fc77b5b3c8f47916fb49cc2a35;hp=01d5f9dac33b70dacb4221e73fddaf0e16a3a1a3;hb=bf206185aace074b8d06262b21a5e99fef890f25;hpb=e73b5913ea7a82bb4fcd319653e98990f1e11999 diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 01d5f9dac3..bf138c4b1e 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -31,12 +31,10 @@ * * @note This class uses setter methods instead of a constructor so that * it can be compatible with PHP 4, PHP 5 and PHP 7 (without warnings). - * - * @class */ class PHPVersionCheck { /* @var string The number of the MediaWiki version used. */ - var $mwVersion = '1.33'; + var $mwVersion = '1.34'; /* @var array A mapping of PHP functions to PHP extensions. */ var $functionsExtensionsMapping = array( @@ -112,7 +110,7 @@ class PHPVersionCheck { 'vendor' => 'the PHP Group', 'upstreamSupported' => '5.6.0', 'minSupported' => '7.0.13', - 'upgradeURL' => 'https://secure.php.net/downloads.php', + 'upgradeURL' => 'https://www.php.net/downloads.php', ); } @@ -123,10 +121,7 @@ class PHPVersionCheck { $phpInfo = $this->getPHPInfo(); $minimumVersion = $phpInfo['minSupported']; $otherInfo = $this->getPHPInfo( $phpInfo['implementation'] === 'HHVM' ? 'PHP' : 'HHVM' ); - if ( - !function_exists( 'version_compare' ) - || version_compare( $phpInfo['version'], $minimumVersion ) < 0 - ) { + if ( version_compare( $phpInfo['version'], $minimumVersion ) < 0 ) { $shortText = "MediaWiki $this->mwVersion requires at least {$phpInfo['implementation']}" . " version $minimumVersion or {$otherInfo['implementation']} version " . "{$otherInfo['minSupported']}, you are using {$phpInfo['implementation']} " @@ -206,7 +201,7 @@ HTML; $missingExtText = ''; $missingExtHtml = ''; - $baseUrl = 'https://secure.php.net'; + $baseUrl = 'https://www.php.net'; foreach ( $missingExtensions as $ext ) { $missingExtText .= " * $ext <$baseUrl/$ext>\n"; $missingExtHtml .= "
  • $ext "