title: PHP file downloads bytes missing
body: <p>I'm trying to download an <code>.msi</code> file which it's actual size is 5.77 MB. When I execute the script the downloaded file will lose some bytes and will become 4.88 MB.</p>
  
  <p>Code:</p>
  
  <pre><code>$file = 'apps/file.msi';
  header('Content-Description: File Transfer');
  header('Content-Type: application/octet-stream');
  header('Content-Disposition: attachment; filename='.basename($file));
  header('Content-Transfer-Encoding: binary');
  header('Expires: 5');
  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  header('Pragma: public');
  header('Content-Length: ' . filesize($file));
  ob_clean();
  flush();
  readfile($file);
  </code></pre>
  
  <p>I tried even with the anchor tag and the same happend. I also changed the extension from <code>.msi</code> to <code>.txt</code> and the bytes were also removed from the downloaded file.</p>
  
  <p>I just can't figure it out</p>