'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',
);
}
$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']} "
$missingExtText = '';
$missingExtHtml = '';
- $baseUrl = 'https://secure.php.net';
+ $baseUrl = 'https://www.php.net';
foreach ( $missingExtensions as $ext ) {
$missingExtText .= " * $ext <$baseUrl/$ext>\n";
$missingExtHtml .= "<li><b>$ext</b> "