Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83640 invoked by uid 1010); 11 Feb 2008 05:11:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83625 invoked from network); 11 Feb 2008 05:11:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2008 05:11:48 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:55617] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/EE-64922-319DFA74 for ; Mon, 11 Feb 2008 00:11:48 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 11 Feb 2008 07:11:47 +0200 Received: from [192.168.17.10] ([192.168.17.10]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 10 Feb 2008 21:11:44 -0800 Message-ID: <47AFD90D.4010806@zend.com> Date: Sun, 10 Feb 2008 21:11:41 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Jan Schneider CC: internals@lists.php.net References: <1323006624.20080209143940@marcus-boerger.de> <20080210111514.54165ecxih2p5yg4@neo.wg.de> In-Reply-To: <20080210111514.54165ecxih2p5yg4@neo.wg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Feb 2008 05:11:44.0942 (UTC) FILETIME=[986A24E0:01C86C6C] Subject: Re: [PHP-DEV] [patch] expose PHP version details as constants From: stas@zend.com (Stanislav Malyshev) >> Is there any chance that dirname(__FILE__) being exposed as a constant, >> i.e. __DIRNAME__? > > No. Constants are per request, dirname(__FILE__) is obviously different > per file. Actually, just as __FILE__, __LINE__, __CLASS__ etc. dirname(__FILE__) can be a parser constant. And if somebody produces a good name and a patch for it, I see no reason to reject it. Does anybody? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com