VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Stephen Roberts on December 05, 2011, 19:50:03 PM

Title: PHP 5.1.6 and memory_get_peak_usage()
Post by: Stephen Roberts on December 05, 2011, 19:50:03 PM
If you're trying to be PHP 5.1.6 compatible, memory_get_peak_usage() throws an error:

Fatal error: Call to undefined function memory_get_peak_usage() in /var/www/html/imd-test/administrator/components/com_virtuemart/helpers/config.php on line 161

It's only used for debugging so I've commented it out. Is this worth "fixing"?
Title: Re: PHP 5.1.6 and memory_get_peak_usage()
Post by: nflmerch on December 05, 2011, 22:36:52 PM
http://forum.virtuemart.net/index.php?topic=94067
Title: Re: PHP 5.1.6 and memory_get_peak_usage()
Post by: Stephen Roberts on December 05, 2011, 22:52:07 PM
Thanks...should have searched more first.  :-[