does php free system memory when unsetting a variable?

paultinichigiu

New member
I am writing a daemon in PHP. It's used in one of my apps to avoid too many MySQL calls: it stores arrays, and returns data from them when needed. This array can grow and shrink in time, sometimes to almost 1Gb, sometimes to no records at all. Does php free RAM when I unset array elements? Because if it doesn't, once my memory space grows due to live conditions, it will stay that way all the time instead of freeing unused memory to the Operating System when I don't need it anymore.
 
Back
Top