Author Topic: PHP 5.1.6 and memory_get_peak_usage()  (Read 1860 times)

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
PHP 5.1.6 and memory_get_peak_usage()
« 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"?
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com

nflmerch

  • Jr. Member
  • **
  • Posts: 114

Stephen Roberts

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 142
    • SundaySchool.com
Re: PHP 5.1.6 and memory_get_peak_usage()
« Reply #2 on: December 05, 2011, 22:52:07 pm »
Thanks...should have searched more first.  :-[
Sell downloadable (virtual) products in VirtueMart 2 and deliver downloads via local server, Amazon S3, and more! http://www.digitollsoftware.com