Remove internal use of deprecated $wgRequestTime
authorKevin Israel <pleasestand@live.com>
Fri, 12 Aug 2016 10:33:37 +0000 (06:33 -0400)
committerKrinkle <krinklemail@gmail.com>
Sun, 18 Mar 2018 04:41:12 +0000 (04:41 +0000)
commit06ba5ca383e29262cbf248bd42859e09acc6563f
tree214ee2df17e399a27b3fc01eb9457efa28dc9e10
parentc5052ef26d683dedef07d77688c68f4ab751fe0c
Remove internal use of deprecated $wgRequestTime

* Use $_SERVER['REQUEST_TIME_FLOAT'] unconditionally in WebRequest.php
  and libs/Timing.php. WebStart.php was doing this already without issue.
  The key existst since PHP 5.4, for both Web and CLI (we require 5.5).

* In wfDebug() and wfReportTime(), use $_SERVER['REQUEST_TIME_FLOAT'] instead.

* In ApiFormatBase and MWDebug, use WebRequest::getElapsedTime() instead.

* In Maintenance.php, remove setting of $wgRequestTime.

* In rebuildFileCache.php, update mocking to $_SERVER['REQUEST_TIME_FLOAT']
  so that we avoid re-introducing bug T24852.

Change-Id: I1b647da2862f815029caa533b592ec8a05b33806
includes/GlobalFunctions.php
includes/WebRequest.php
includes/api/ApiFormatBase.php
includes/debug/MWDebug.php
includes/libs/Timing.php
maintenance/Maintenance.php
maintenance/rebuildFileCache.php
tests/phpunit/includes/WebRequestTest.php