Hi Armin,
Although I'm not sure if the free call was useful... since it was only
removing the php object from a global list but the object was not really freed
until the end of the script... I would suggest to simply add a such condition
if ms_version 6 ... obj-free() rather than removing
Alan
I used a script creating 3 different type of objects without applying
the free method, put it in a loop with 1M cycles and opened it in a
browser. Checking the memory usage of the Apache process while running
the script showed no increase of memory at all. So I would guess the
free() is
That's what I thought. Thanks for testing.
Alan
On April 29, 2011 01:40:42 pm Armin Burger wrote:
Alan
I used a script creating 3 different type of objects without applying
the free method, put it in a loop with 1M cycles and opened it in a
browser. Checking the memory usage of the Apache
Hi everybody
in MapServer/MapScript 6 the various class methods free() have been
removed. If I want to have PHP/MapScript code compatible with both
MapServer 5.x and 6, the easiest would be to completely remove these
method calls from the code.
My question is just if these free() methods