X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=d063ce3d6e0ec421833432c1283ad061b75620b7;hb=4fc7420feaeb082b741c45503fb8449a882adedd;hp=9ee8042d54b0fece512cc552c664e292800d7de4;hpb=231d152d63f4a12e4e40da210b059a8c1ab5a1d9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index 9ee8042d54..d063ce3d6e 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -26,17 +26,15 @@ * @file */ +if ( ini_get( 'mbstring.func_overload' ) ) { + die( 'MediaWiki does not support installations where mbstring.func_overload is non-zero.' ); +} # bug 15461: 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. header( 'X-Content-Type-Options: nosniff' ); -# Approximate $_SERVER['REQUEST_TIME_FLOAT'] for PHP<5.4 -if ( !isset( $_SERVER['REQUEST_TIME_FLOAT'] ) ) { - $_SERVER['REQUEST_TIME_FLOAT'] = microtime( true ); -} - /** * @var float Request start time as fractional seconds since epoch * @deprecated since 1.25; use $_SERVER['REQUEST_TIME_FLOAT'] or @@ -72,7 +70,7 @@ require_once "$IP/includes/AutoLoader.php"; require_once "$IP/includes/Defines.php"; # Start the profiler -$wgProfiler = array(); +$wgProfiler = []; if ( file_exists( "$IP/StartProfiler.php" ) ) { require "$IP/StartProfiler.php"; }