How did my script run out of memory and execution time at the same time?
<p>I knew I was going to run out of something, since I was running a very long task. That's not the problem.</p>

<p>I am just curious, how did I get both errors at the same time?</p>

<blockquote>
  <p>Fatal error: Allowed memory size of 805306368 bytes exhausted (tried
  to allocate 71 bytes) in...</p>
</blockquote>

<p>--</p>

<blockquote>
  <p>Fatal error: Maximum execution time of 300 seconds exceeded in Unknown
  on line 0</p>
</blockquote>

<p>Shouldn't the first "fatal" error halt execution? I am running APC and php 5.2.6.</p>

<p>EDIT:
<a href="http://i.stack.imgur.com/5hTPi.jpg" rel="nofollow">Here is a screenshot</a></p>
