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

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
mahjong

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

Post 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
 ?>
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “[locked] Quality Assurance”