GlobIterator prepends / slash to local filenames
<p>So I was trying to use <a href="http://php.net/GlobIterator" rel="nofollow"><code>GlobIterator</code></a> for unifying some file parameter handling. (Using the Iterator for symmetry with the also used <a href="http://php.net/RecursiveDirectoryIterator" rel="nofollow"><code>RecursiveDirectoryIterator</code></a> for other list params.)</p>

<p>But it has a peculiarity with filespecs for the current directory:</p>

<pre><code> $dir = new GlobIterator("*.php");
</code></pre>

<p>That prepends <code>/</code> slashes to keys and <code>FileObject</code> entry names.</p>

<pre><code>     [pathName:SplFileInfo:private] =&gt; /index.php
     [fileName:SplFileInfo:private] =&gt; /index.php
</code></pre>

<p>Which makes utilizing it as filename iterator less useful.  </p>

<p>So <code>GlobIterator</code> is not merely a 1:1 <a href="http://php.net/glob" rel="nofollow"><code>glob()</code></a> replacement wrapped in an Iterator as the manual suggests. <strong>(1)</strong> But why does the <code>/</code> get prepended anyway? <strong>(2)</strong> And which flag does disable this rewrite? <a href="http://php.net/FilesystemIterator" rel="nofollow"><code>FilesystemIterator::CURRENT_AS_FILEINFO</code></a> was my first assumption, but didn't help, neither <code>::KEY_AS_PATHNAME</code>. Are there other flags? (terse manual and all)</p>
