Reputation: 5122
I have very bad code written in php. It consumes a lot memory, and then it brakes down, clears the sessions and bows!
I need to know when the garbage collector runs, so that I can prove that this is indeed the case, but as far as i know php5.2 doesn't provide such of functions. The code is written by an inexperienced developer.
How can I tell if the PHP's garbage collector ran or not?
Upvotes: 1
Views: 884
Reputation: 117487
Prior to 5.3, PHP doesn't do garbage collection. The memory-management strategy is reference counting. Even in 5.3, garbage collection is an optional add-on to the main refcount mechanism.
Upvotes: 5