X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPHPVersionCheck.php;h=1eafcfa5b806343020b3edff8e15aad747cb59f8;hb=c3c37132a2d01004f5e47bfe00a064171c00875a;hp=4b2ff8c25a9dfb0161e1e61bda448d29d2d98436;hpb=fd15fa3c4e3d55a201b6b2608c1241c3fa88e2df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 4b2ff8c25a..1eafcfa5b8 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -31,7 +31,7 @@ */ function wfEntryPointCheck( $entryPoint ) { $mwVersion = '1.27'; - $minimumVersionPHP = '5.3.3'; + $minimumVersionPHP = '5.5.9'; $phpVersion = PHP_VERSION; if ( !function_exists( 'version_compare' ) @@ -40,7 +40,9 @@ function wfEntryPointCheck( $entryPoint ) { wfPHPVersionError( $entryPoint, $mwVersion, $minimumVersionPHP, $phpVersion ); } + // @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound if ( !file_exists( dirname( __FILE__ ) . '/../vendor/autoload.php' ) ) { + // @codingStandardsIgnoreEnd wfMissingVendorError( $entryPoint, $mwVersion ); } } @@ -160,7 +162,7 @@ function wfPHPVersionError( $type, $mwVersion, $minimumVersionPHP, $phpVersion ) $longHtml = <<upgrading your copy of PHP. - PHP versions less than 5.3.0 are no longer supported by the PHP Group and will not receive + PHP versions less than 5.5.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.

@@ -180,7 +182,7 @@ HTML; * @param string $mwVersion See wfGenericError */ function wfMissingVendorError( $type, $mwVersion ) { - $shortText = "Installing some external dependencies (e.g. via composer) is also required."; + $shortText = "Installing some external dependencies (e.g. via composer) is required."; $longText = "Error: You are missing some external dependencies. \n" . "MediaWiki now also has some external dependencies that need to be installed\n" @@ -188,12 +190,14 @@ function wfMissingVendorError( $type, $mwVersion ) { . "https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries\n" . "for help on installing the required components."; + // @codingStandardsIgnoreStart Generic.Files.LineLength $longHtml = <<mediawiki.org - for help on installing the required components. + MediaWiki now also has some external dependencies that need to be installed via + composer or from a separate git repo. Please see + mediawiki.org + for help on installing the required components. HTML; + // @codingStandardsIgnoreEnd wfGenericError( $type, $mwVersion, 'External dependencies', $shortText, $longText, $longHtml ); }