From: Alexandre Emsenhuber Date: Tue, 19 Apr 2011 06:26:30 +0000 (+0000) Subject: Removed check whether memory_get_usage() exists; per manual it is always included... X-Git-Tag: 1.31.0-rc.0~30712 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=046de031ae4c129e85db9d5dbfedec558043ca92;p=lhc%2Fweb%2Fwiklou.git Removed check whether memory_get_usage() exists; per manual it is always included since PHP 5.2.1 even without --enable-memory-limit --- diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index a7698c6e42..043da15a10 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -46,13 +46,6 @@ function wfProfileClose() { Profiler::instance()->close(); } -if (!function_exists('memory_get_usage')) { - # Old PHP or --enable-memory-limit not compiled in - function memory_get_usage() { - return 0; - } -} - /** * @ingroup Profiler * @todo document