title: filemtime() [function.filemtime]: stat failed for filenames with umlauts
body: <p>I use the PHP function <strong><a href="http://php.net/manual/de/function.filemtime.php">filemtime</a></strong> to get the last modification time with PHP 5.3. This functions works very well but it seems to have some problems when the filenames have special characters (for example umlauts).</p>
  
  <p>If I run it on a filename with umlauts</p>
  
  <pre><code>$stat = filemtime('C:/pictures/München.JPG');
  </code></pre>
  
  <p>then I get the output:</p>
  
  <pre><code>Warning: filemtime() [function.filemtime]: stat failed for C:/pictures/München.JPG
  </code></pre>
  
  <p>If I rename the file from "München.JPG" to "Muenchen.JPG" and do the same thing again:</p>
  
  <pre><code> $stat = filemtime('C:/pictures/Muenchen.JPG');
  </code></pre>
  
  <p>everything works fine!</p>
  
  <p>My PHP file is saved as UTF-8 without BOM and I also tried:</p>
  
  <pre><code>clearstatcache();
  $stat = filemtime(utf8_encode('C:/pictures/München.JPG'));
  </code></pre>
  
  <p>but it has not helped.</p>