title: In PHP, using no output buffering, cannot write more than 400 lines in Chrome
body: <p>This is a simple loop to print out 1000 lines. 
  On my Windows 7 machine using Chrome and Zend Server, it shows only 400 lines and then stops without any error. </p>
  
  <p>If I change the time delay in usleep() to 200ms, it shows 600 lines and then stops. </p>
  
  <p>If I set the set_time_limit () to 20secs, it shows about 100 lines and then gives error: "Fatal Error: Maximum Execution time limit...". </p>
  
  <p>Did I miss any system setting that made the execution stops abruptly like that ? I look at the logs and don't see any error.    </p>
  
  <pre><code>&lt;?php
  // Turn off output buffering and set implicit flush on
  @ini_set('implicit_flush', 1);
  @ini_set('output_bufferring', 0);
  @ini_set('zlib.output_compression', 0);
  for ($i = 0; $i &lt; ob_get_level(); $i++)
      ob_end_flush();
  // Stop output buffering
  ob_implicit_flush(1);
  
  set_time_limit(0);
  
  // MAIN LOOP to print out a line 1000 times 
  for ($i=0; $i&lt;1000;$i++) {
      $buf = sprintf("Line %04d ".str_repeat(" ", 1010)."&lt;br&gt;", $i);
      echo "$buf\n";
      usleep(300000);
  }
  
  echo "End of execution&lt;br&gt;\n";
  
  ?&gt;
  </code></pre>