Possible Duplicate:
Finding cause of memory leaks in large PHP stacks
What are common causes of PHP memory leaks? I'm looking for things that are commonly done by unsuspecting PHP programmers that cause memory leaks.
Possible Duplicate:
Finding cause of memory leaks in large PHP stacks
What are common causes of PHP memory leaks? I'm looking for things that are commonly done by unsuspecting PHP programmers that cause memory leaks.
The most common cause of leaks is circular references. However, as of PHP 5.3, those are now detected and taken care of.
So now the only causes of "leaks" should be:
A bug with PHP (I don't know of any offhand; check the active bug reports.)
Building large (for instance) arrays or strings that you never "free" (i.e., You continue to reference them)
So in short, there shouldn't be much of a problem if you remember to stop referencing data you no longer need.