X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=d063ce3d6e0ec421833432c1283ad061b75620b7;hb=af3e377adb74213a398477d500e106b2b2fb8b0c;hp=fb6c3e6768dd0ff61e595f777e7433176612e54a;hpb=f875f3d31867067116641af987dea4511324e96b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index fb6c3e6768..d063ce3d6e 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -26,18 +26,8 @@ * @file */ -# Die if register_globals is enabled (PHP <=5.3) -# This must be done before any globals are set by the code -if ( ini_get( 'register_globals' ) ) { - die( 'MediaWiki does not support installations where register_globals is enabled. Please see ' - . 'mediawiki.org ' - . 'for help on how to disable it.' ); -} - -if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() ) { - die( 'MediaWiki does not function when magic quotes are enabled. Please see the ' - . 'PHP Manual ' - . 'for help on how to disable magic quotes.' ); +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 @@ -45,11 +35,6 @@ if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() ) { # 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 @@ -85,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"; }