title: Cannot destroy active lambda function
body: <p>Can someone tell me the most common reasons to see this error in PHP:</p>
  
  <blockquote>
    <p>Cannot destroy active lambda function in...</p>
  </blockquote>
  
  <p>I'm guessing that somewhere there is code that's trying to destroy a closure that contains a reference to itself and the compiler is annoyed at this.</p>
  
  <p>We get these more regularly than I'd like and I'm wondering what pattern we are using that's the likely culprit that's causing it.</p>
  
  <p>I would attach a code snippet but the error typically points to a file not to a line in a file that might provide a hint.</p>