Oct 12, 2013, by admin
When processing a large number of records or calling objects with recursive references, a memory leak can occur causing PHP to run out of memory. PHP 5.3 has a garbage collector gc_enable() that can collect cyclic references. You can also avoid the memory leak issue by manually calling the destructors and unsetting the recursive ref like below.
Also Memory leak issue can occur due to server configuration, so make sure to check it at server end.