MyBB Community Forums

Full Version: redeclare memory_get_peak_usage()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Cannot redeclare memory_get_peak_usage() in
/inc/functions_compat.php

This is the error I get after installing the new version. My first try was to upgrade from 1.2.... to 1.4.1

After that I tryied to install from zero, but the result was the same. is there any chance to get this new version installed on the webspace (freehoster)
What version of PHP are you using?
You could try editing inc/functions_compat.php and remove the following:
if(!function_exists('memory_get_peak_usage'))
{
	function memory_get_peak_usage($real_usage=false)
	{
		return memory_get_usage($real_usage);
	}
}
Though I really fail to understand why you'd get that error from MyBB...
1.The PHP version is: PHP 5.2.6 stable-version

2. I will try your code today in the evening, I will reply the results then, thank you
(2008-08-25, 12:35 AM)ZiNgA BuRgA Wrote: [ -> ]You could try editing inc/functions_compat.php and remove the following:
if(!function_exists('memory_get_peak_usage'))
{
	function memory_get_peak_usage($real_usage=false)
	{
		return memory_get_usage($real_usage);
	}
}
Though I really fail to understand why you'd get that error from MyBB...

so that's it thank you!

I (d'oh I cant translate /*<-name for this->*/), so I made it away ^^
Now all's working fine