title: is_file or file_exists not working in apache but in CLI
body: <p>I have a very strange behavior with is_file() or file_exists() function.</p>
  
  <pre>
  &lt;?php 
      $nfsFile = '/mnt/nfsdir/file.txt';
      var_dump(is_file($nfsFile));
  ?>
  </pre>
  
  <p>this code returns FALSE all the time, but:</p>
  
  <p><code>
  $#php -r 'var_dump(is_file('/mnt/nfsdir/file.txt'));'
  </code></p>
  
  <p>returns TRUE, which is correct.</p>
  
  <p>I'm running Debian Squeeze, Apache 2.2.15 and PHP 5.3.2-1.</p>
  
  <p>I'm not in safe mode, the directory /mnt/nfsdir/ and all files are in 777, www-data user can ls /mnt/nfsdir/  so I'm a bite out of idea now.</p>
  
  <p>Any suggestion are welcome!</p>