Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35408 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89317 invoked by uid 1010); 12 Feb 2008 11:23:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89302 invoked from network); 12 Feb 2008 11:23:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2008 11:23:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:52140] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/A6-36990-3B181B74 for ; Tue, 12 Feb 2008 06:23:31 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id 4E60427E05A; Tue, 12 Feb 2008 12:23:28 +0100 (CET) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9JhEWIx9wVas; Tue, 12 Feb 2008 12:23:24 +0100 (CET) Received: from [192.168.1.10] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id 893B827E041; Tue, 12 Feb 2008 12:23:24 +0100 (CET) Message-ID: <47B18169.4090108@iamjochem.com> Date: Tue, 12 Feb 2008 12:22:17 +0100 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Sebastian Bergmann CC: internals@lists.php.net References: <20080210111514.54165ecxih2p5yg4@neo.wg.de> <47AFD90D.4010806@zend.com> <1202730660.3698.9.camel@localhost> <1202743539.3698.11.camel@localhost> <1202747101.3698.14.camel@localhost> <1202748940.3698.25.camel@localhost> <47B17CD6.5080004@iamjochem.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] expose PHP version details as constants From: jochem@iamjochem.com (Jochem Maas) Sebastian Bergmann schreef: > Jochem Maas schrieb: >>>> Output: >>>> C:\ >>>> Is this intended? >>> Yes, or what would you expect? >> possibly 'C:' ? > > Is "C:" not the volume whereas "C:\" is the root directory on the > volume? this is what I thought, kind of, but I was just proposing what the OP was expecting. it does make one think a little about the small discrepancy with regard to whether the slash is 'appended' or not depending on whether the dir is the root or not: php -r ' echo dirname("/Users"),"\n", dirname("/Users/foo"),"\n"; ' / /Users which means one cannot blindly say: include __DIR__."/somefile"; although that's probably moot because my experience is that extraneous slashes in a path are, afaik, always ignored. i.e. /foo//foo//foo == /foo/foo/foo, so really there is nothing to see here. good idea btw having __DIR__, it makes sense and rounds off the other magic constants nicely. >