From: Ævar Arnfjörð Bjarmason Date: Fri, 16 Sep 2005 15:32:59 +0000 (+0000) Subject: * Die gracefully if php has not been compiled with --enable-memory-limit X-Git-Tag: 1.6.0~1629 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=3c0245f03c43e82e07a9b7e25b045f36cacd2363;p=lhc%2Fweb%2Fwiklou.git * Die gracefully if php has not been compiled with --enable-memory-limit --- diff --git a/maintenance/langmemusage.php b/maintenance/langmemusage.php index a2e676f6a3..b9c26cabe0 100644 --- a/maintenance/langmemusage.php +++ b/maintenance/langmemusage.php @@ -10,6 +10,9 @@ require_once('languages.inc'); $langtool = new languages(); +if ( ! function_exists( 'memory_get_usage' ) ) + die( "You must compile PHP with --enable-memory-limit\n" ); + $memlast = $memstart = memory_get_usage(); print 'Base memory usage: '.$memstart."\n";