title: Debugging PHP memory leak. Tracking the reference count?
body: <p>I have a rather large PHP script that is leaking memory. I have been able to figure out what object is leaking, but I have not been able to find out where in the script it is leaking. Some part of my script is keeping a reference to the leaking object.</p>
  
  <p>Is there some way that I can track (and preferably backtrace) where/when a PHP object has it's reference count increased or decreased?</p>