title: Allowed memory size of * bytes exhausted, in php
body: <p>I'm getting the 'out of memory' error in php. I know it can be fixed with the likes of ini_set("memory_limit","64M"), but I don't want to, because that much memory for a script is abnormal. I have a few reports that are so huge that I pretty much need that memory, but normally don't.</p>
  
  <p>The problem is: I don't even know which script is consuming that much memory, and no user (yet) has reported an error. I know this is happening only thanks to log_errors (set to true) and error_log (set to a very visible file in my desktop), but it doesn't report which script is the culprit.</p>
  
  <p>Any idea on how to know that?</p>