X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FPHPVersionCheck.php;h=b63a84d807b3cd1a50dc864d842a583a3782fba5;hb=caeaed1019b9f7934fb7dcd03fc4cf0b2f189581;hp=3f08a37cf41ba51a916ca7c4ba81bddcb51c6fa4;hpb=7260cc09cb7e3e5404eb7b3c1e876a7c112477a7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 3f08a37cf4..b63a84d807 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -112,7 +112,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 +123,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 +203,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 "