title: PHP is_file() not work correctly
body: <p>I want to check files in directory and i'm using <code>scandir()</code>and <code>is_file()</code> for check. In this simple code <code>is_file()</code> return <code>false</code> for me. but in directory I have 3 file.</p>
  
  <pre><code>$files = scandir('uploads/slideShow');
  $sfiles = array();
  foreach($files as $file) {
    if( is_file($file) ) {
      $sfiles[] = $file;
      // echo $file;
    }
  }
  </code></pre>
  
  <p>result for <code>scandir()</code> with <code>$file</code>s variable:</p>
  
  <pre><code>Array
  (
    [0] =&gt; .
    [1] =&gt; ..
    [2] =&gt; 6696_930.jpg
    [3] =&gt; 9_8912141076_L600.jpg
    [4] =&gt; untitled file.txt
  )
  </code></pre>
  
  <p>result for <code>$sfiles</code>:</p>
  
  <pre><code>Array
  (
  )
  </code></pre>