Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -536,6 +536,13 @@ |
537 | 537 | $this->showMessage( 'config-pcre' ); |
538 | 538 | return false; |
539 | 539 | } |
| 540 | + wfSuppressWarnings(); |
| 541 | + $regexd = preg_replace( '/[\x{0400}-\x{04FF}]/u', '', '-АБВГД-' ); |
| 542 | + wfRestoreWarnings(); |
| 543 | + if ( $regexd != '--' ) { |
| 544 | + $this->showMessage( 'config-pcre-no-utf8' ); |
| 545 | + return false; |
| 546 | + } |
540 | 547 | } |
541 | 548 | |
542 | 549 | /** |
Index: trunk/phase3/includes/installer/Installer.i18n.php |
— | — | @@ -124,6 +124,8 @@ |
125 | 125 | If you're running Mandrake, install the php-xml package.", |
126 | 126 | 'config-pcre' => 'The PCRE support module appears to be missing. |
127 | 127 | MediaWiki requires the Perl-compatible regular expression functions to work.', |
| 128 | + 'config-pcre-no-utf8' => "'''Fatal''': PHP's PCRE module seems to be compiled without PCRE_UTF8 support. |
| 129 | +MediaWiki requires UTF-8 support to function correctly.", |
128 | 130 | 'config-memory-none' => 'PHP is configured with no <code>memory_limit</code>', |
129 | 131 | 'config-memory-ok' => "PHP's <code>memory_limit</code> is $1. |
130 | 132 | OK.", |