Page 1 of 1

superfluous code in footer.php (svn, rev. #3342)

Posted: Mon Aug 21, 2006 4:05 am
by mahjong
I get a Fatal error: Call to undefined function: memory_get_usage() in \admin\footer.php on line 83
PHP manual wrote:memory_get_usage() is available only if PHP is compiled with the --enable-memory-limit configuration option, which is not the case on most Windows installations.
Seems to be some kind of testing leftover, but if you need to keep it here's a workaround:

Code: Select all

Index: footer.php
===================================================================
--- footer.php	(revision 3342)
+++ footer.php	(working copy)
@@ -80,7 +80,7 @@
 
 echo $htmlresult;
 
-var_dump(memory_get_usage());
+if( function_exists('memory_get_usage') ) var_dump(memory_get_usage());
 
 # vim:ts=4 sw=4 noet
 ?>

Re: superfluous code in footer.php (svn, rev. #3342)

Posted: Mon Aug 21, 2006 4:10 am
by calguy1000
that's interesting, but svn may be a bit broken at the moment as we're in the midst of doing some modifications to reduce the memory footprint (well, more exactly Ted is). 

It's interesting that you don't have this function though.