title: PHP connection_aborted() not working correctly
body: <p>I have the following code:</p>
  
  <pre><code>ignore_user_abort(true);
  while(!connection_aborted()) {
      // do stuff
  }
  </code></pre>
  
  <p>and according to the PHP documentation, this should run until the connection is closed, but for some reason, it doesn't, instead it keeps running until the script times out.  I've looked around online and some recommended adding</p>
  
  <pre><code>echo chr(0);
  flush();
  </code></pre>
  
  <p>into the loop, but that doesn't seem to do anything either.  Even worse, if I just leave it as</p>
  
  <pre><code>while(true) {
      // do stuff
  }
  </code></pre>
  
  <p>PHP still continues to run the script after the client disconnects.  Does anyone know how to get this working?  Is there a php.ini setting that I'm missing somewhere?</p>
  
  <p>If it matters, I'm running PHP 5.3.5.  Thanks in advance!</p>