Setup: Move mbstring.func_overload from WebStart to Setup
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 17 Apr 2018 22:07:48 +0000 (23:07 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 17 Apr 2018 22:09:58 +0000 (23:09 +0100)
Follows-up 26c2d03c1741d1fa1c3a and r11547 (c7f363f886).

Also add references to the relevant tasks about why the check
exists.

Bug: T189966
Change-Id: Ic1f0c79a1b5638bb30351a0cab55699931d1fded

includes/Setup.php
includes/WebStart.php

index 6513cdd..de7d59a 100644 (file)
@@ -37,6 +37,11 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  * Pre-config setup: Before loading LocalSettings.php
  */
 
+// Sanity check (T5782, T122807)
+if ( ini_get( 'mbstring.func_overload' ) ) {
+       die( 'MediaWiki does not support installations where mbstring.func_overload is non-zero.' );
+}
+
 // Start the autoloader, so that extensions can derive classes from core files
 require_once "$IP/includes/AutoLoader.php";
 
index 6f3aa71..d64aae0 100644 (file)
  * @file
  */
 
-if ( ini_get( 'mbstring.func_overload' ) ) {
-       die( 'MediaWiki does not support installations where mbstring.func_overload is non-zero.' );
-}
-
 # T17461: Make IE8 turn off content sniffing. Everybody else should ignore this
 # We're adding it here so that it's *always* set, even for alternate entry
 # points and when $wgOut gets disabled or overridden.