title: How to recover from a fatal error "Allowed memory size exhausted"
body: <p>Do you know any solution to recover from the PHP fatal error : "<em>Allowed memory size ... exhausted</em>"</p>
  
  <p>I have a shutdown function that is called when a fatal error appear. This function create an ErrorException from it, and logs it.</p>
  
  <p>The problem is : when there is no more memory available, it can't log the error (I log in Firebug, via FirePHP, with Zend Framework).</p>
  
  <p>So what i mean by "<em>how to recover from it</em>", is how to perform basic error log, and let Zend Framework send the Headers, so that the error is logged (in Firebug in my case) as any other error ?</p>
  
  <p>Thanks</p>