title: PHP simple html dom: apache crashes
body: <p>I'm using <strong>Simple HTML Dom</strong>. I'm trying to run the following: (with WAMP)</p>
  
  <pre><code>$doc = file_get_html('http://www.scoop.it/t/curate-your-personal-learning-environment?page=3');
  $comments = array();
  $CommentList = $doc-&gt;find('#commentList div[class=commentContainer]');
  if (count($CommentList) &gt; 0)
      var_dump($CommentList);
  foreach ($CommentList as $comment)
  {
      $text = $comment-&gt;find('span[class^=author]');
      $comments[] = $this::ctrim($text[0]-&gt;innertext);
  }
  </code></pre>
  
  <p>If I comment out the foreach loop, it runs fine.
  Otherwise, the apache crashes.</p>
  
  <p>One important note: If I comment out the inside of the foreach loop, it still crashes.
  I added the var dump to make sure that the array has valid items.</p>
  
  <p>EDIT:</p>
  
  <p>Apache logs:</p>
  
  <pre><code>[Tue Jul 10 16:53:53 2012] [notice] Parent: child process exited with status 255 -- Restarting.
  [Tue Jul 10 16:53:53 2012] [notice] Apache/2.2.22 (Win64) PHP/5.3.13 configured -- resuming normal operations
  [Tue Jul 10 16:53:53 2012] [notice] Server built: May 13 2012 19:41:17
  [Tue Jul 10 16:53:53 2012] [notice] Parent: Created child process 5568
  [Tue Jul 10 16:53:53 2012] [notice] Child 5568: Child process is running
  [Tue Jul 10 16:53:53 2012] [notice] Child 5568: Acquired the start mutex.
  [Tue Jul 10 16:53:53 2012] [notice] Child 5568: Starting 64 worker threads.
  [Tue Jul 10 16:53:53 2012] [notice] Child 5568: Starting thread to listen on port 80.
  [Tue Jul 10 16:53:53 2012] [notice] Child 5568: Starting thread to listen on port 80.
  </code></pre>