Re: [patch] expose PHP version details as constants

From: Date: Tue, 12 Feb 2008 11:04:41 +0000
Subject: Re: [patch] expose PHP version details as constants
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-35406@lists.php.net to get a copy of this message
On Feb 12, 2008 12:02 PM, Jochem Maas <jochem@iamjochem.com> wrote: > Pierre Joye schreef: > > Hi Edward, > > > > On Feb 12, 2008 4:30 AM, Edward Z. Yang <edwardzyang@thewritingpot.com> 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

« previous php.internals (#35406) next »