why memory_get_peak_usage() does not wrok in 5.2.0 in wamp

Topics: Developer Forum, Project Management Forum, User Forum
Sep 8, 2011 at 4:46 AM

Fatal error: Call to undefined function memory_get_peak_usage() in D:\wamp\www\excel\1.7.6\Tests\01simple.php on line 81


I tried to run the sample file but it always display above error, then i comment this function it shows message excel file is created but when i tried to open excel says file is cropped.

I frustrated with this message tried to solve since long time. but :(  could  not found the solution.

Sep 8, 2011 at 8:48 AM
Edited Sep 8, 2011 at 8:49 AM

dude, why do you use such a very old version of php. php5.2 has not been deprecated for over 2 years! Try php5.3


according to  http://nl.php.net/memory_get_peak_usage, is hould work on 5.2 however.