title: Why does php file_info return inode/x-empty for empty text files?
body: <p>I am currently working on a class that wraps the finfo_file function.</p>
  
  <p>The following script returns <code>inode/x-empty</code> for all empty text files:</p>
  
  <pre><code>$finfo = finfo_open(FILEINFO_MIME_TYPE);
  echo finfo_file($finfo,'/path/to/text_file.txt');
  </code></pre>
  
  <p>Tested in the following environments and received the same results.</p>
  
  <p><strong>WAMP</strong><br>
  Windows 7<br>
  PHP 5.4.27<br>
  APACHE 2.2.22</p>
  
  <p><strong>Linux</strong><br>
  Ubuntu<br>
  PHP 5.5.10<br>
  APACHE 2.4.9</p>
  
  <p>My goal is to setup the class so that I can white list file types.  If a MIME type of <code>text/plain</code> is white listed, the empty text file would fail since it returns a MIME type of <code>inode/x-empty</code>.</p>
  
  <p>Is this default behavior for the <code>finfo_file</code> function?</p>