On Feb 12, 2008 12:02 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Pierre Joye schreef: > > Hi Edward, > > > > On Feb 12, 2008 4:30 AM, Edward Z. Yang <[EMAIL PROTECTED]> wrote: > >> Hello all, I was documenting the __DIR__ patch, and I ran across some > >> curious behavior when the PHP file was in the Windows filesystem root: > >> > >> C:\test.php > >> <?php > >> echo __DIR__; > >> ?> > >> > >> Output: > >> C:\ > >> > >> Is this intended? > > > > Yes, or what would you expect? > > possibly 'C:' ?
That would be a drive name not the directory name (equivalent to its path). Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php