dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resourceloader: Remove Grade C sniffs for WebOS <=1.4 and SymbianOS
[lhc/web/wiklou.git]
/
includes
/
PHPVersionCheck.php
diff --git
a/includes/PHPVersionCheck.php
b/includes/PHPVersionCheck.php
index
01d5f9d
..
b63a84d
100644
(file)
--- a/
includes/PHPVersionCheck.php
+++ b/
includes/PHPVersionCheck.php
@@
-36,7
+36,7
@@
*/
class PHPVersionCheck {
/* @var string The number of the MediaWiki version used. */
*/
class PHPVersionCheck {
/* @var string The number of the MediaWiki version used. */
- var $mwVersion = '1.3
3
';
+ var $mwVersion = '1.3
4
';
/* @var array A mapping of PHP functions to PHP extensions. */
var $functionsExtensionsMapping = array(
/* @var array A mapping of PHP functions to PHP extensions. */
var $functionsExtensionsMapping = array(
@@
-112,7
+112,7
@@
class PHPVersionCheck {
'vendor' => 'the PHP Group',
'upstreamSupported' => '5.6.0',
'minSupported' => '7.0.13',
'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' );
$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']} "
$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 = '';
$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> "
foreach ( $missingExtensions as $ext ) {
$missingExtText .= " * $ext <$baseUrl/$ext>\n";
$missingExtHtml .= "<li><b>$ext</b> "