What is the best method for memory cleanup in PHP? (5.2) -
I have two simple questions: what is better / useful for memory cleaning?
$ var = null;
or
unset ($ var);
I have a function with a circle. I'm getting (after a few minutes)
Fatal error: 419430400 bytes of tired memory size has expired
I set the blank and unset The object (at the end of the cycle) but still without any success: (I do not understand what the memory is consuming.
And what is the circle about the function call? All the allocation will be released in the function? PHP itself confuses both concepts Normally, there is no variable set for zero.
Comments
Post a Comment