Index: trunk/phase3/INSTALL |
— | — | @@ -6,10 +6,10 @@ |
7 | 7 | "in-place", as long as you have the necessary prerequisites available. |
8 | 8 | |
9 | 9 | Required software: |
10 | | -* Web server with PHP 5.1.x or higher. |
| 10 | +* Web server with PHP 5.2.x or higher. |
11 | 11 | * A SQL server, the following types are supported |
12 | 12 | ** MySQL 4.0.14 or higher |
13 | | -** PostgreSQL 8.1 or higher |
| 13 | +** PostgreSQL 8.3 or higher |
14 | 14 | ** SQLite |
15 | 15 | |
16 | 16 | MediaWiki is developed and tested mainly on Unix/Linux platforms, but should |
Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -23,6 +23,9 @@ |
24 | 24 | */ |
25 | 25 | abstract class Installer { |
26 | 26 | |
| 27 | + // This is the absolute minimum PHP version we can support |
| 28 | + const MINIMUM_PHP_VERSION = '5.2.0'; |
| 29 | + |
27 | 30 | /** |
28 | 31 | * @var array |
29 | 32 | */ |
— | — | @@ -363,14 +366,21 @@ |
364 | 367 | * @return Status |
365 | 368 | */ |
366 | 369 | public function doEnvironmentChecks() { |
367 | | - $this->showMessage( 'config-env-php', phpversion() ); |
| 370 | + $phpVersion = phpversion(); |
| 371 | + if( version_compare( $phpVersion, self::MINIMUM_PHP_VERSION, '>=' ) ) { |
| 372 | + $this->showMessage( 'config-env-php', $phpVersion ); |
| 373 | + $good = true; |
| 374 | + } else { |
| 375 | + $this->showMessage( 'config-env-php-toolow', $phpVersion, self::MINIMUM_PHP_VERSION ); |
| 376 | + $good = false; |
| 377 | + } |
368 | 378 | |
369 | | - $good = true; |
370 | | - |
371 | | - foreach ( $this->envChecks as $check ) { |
372 | | - $status = $this->$check(); |
373 | | - if ( $status === false ) { |
374 | | - $good = false; |
| 379 | + if( $good ) { |
| 380 | + foreach ( $this->envChecks as $check ) { |
| 381 | + $status = $this->$check(); |
| 382 | + if ( $status === false ) { |
| 383 | + $good = false; |
| 384 | + } |
375 | 385 | } |
376 | 386 | } |
377 | 387 | |
Index: trunk/phase3/includes/installer/Installer.i18n.php |
— | — | @@ -89,6 +89,8 @@ |
90 | 90 | 'config-env-bad' => 'The environment has been checked. |
91 | 91 | You cannot install MediaWiki.', |
92 | 92 | 'config-env-php' => 'PHP $1 is installed.', |
| 93 | + 'config-env-php-toolow' => 'PHP $1 is installed. |
| 94 | +However, MediaWiki requires PHP $2 or higher.', |
93 | 95 | 'config-unicode-using-utf8' => 'Using Brion Vibber\'s utf8_normalize.so for Unicode normalization.', |
94 | 96 | 'config-unicode-using-intl' => 'Using the [http://pecl.php.net/intl intl PECL extension] for Unicode normalization.', |
95 | 97 | 'config-unicode-pure-php-warning' => "'''Warning''': The [http://pecl.php.net/intl intl PECL extension] is not available to handle Unicode normalization, falling back to slow pure-PHP implementation. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -18,6 +18,10 @@ |
19 | 19 | Those wishing to use the latest code instead of a branch release can obtain |
20 | 20 | it from source control: http://www.mediawiki.org/wiki/Download_from_SVN |
21 | 21 | |
| 22 | +=== PHP 5.2 now required == |
| 23 | +In 1.18, the lowest supported version of MediaWiki is now 5.2.x. Please upgrade |
| 24 | +PHP if you have not done so prior to upgrading MediaWiki. |
| 25 | + |
22 | 26 | === Configuration changes in 1.18 === |
23 | 27 | * The WantedPages::getSQL hook has been removed and replaced with |
24 | 28 | WantedPages::getQueryInfo . This may break older extensions. |