Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35346 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22437 invoked by uid 1010); 10 Feb 2008 10:54:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22421 invoked from network); 10 Feb 2008 10:54:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2008 10:54:08 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 213.46.255.22 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 213.46.255.22 viefep18-int.chello.at Solaris 10 (beta) Received: from [213.46.255.22] ([213.46.255.22:61430] helo=viefep15-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/75-64922-EC7DEA74 for ; Sun, 10 Feb 2008 05:54:07 -0500 Received: from edge01 ([192.168.13.236]) by viefep15-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080210105404.LLCX20865.viefep15-int.chello.at@edge01> for ; Sun, 10 Feb 2008 11:54:04 +0100 Received: from [84.112.136.139] ([84.112.136.139:6337] helo=genuine.home) by edge01.chello.at (envelope-from ) (ecelerity 2.2.1.24 r(21290M)) with ESMTP id 66/A3-28678-A5ADEA74; Sun, 10 Feb 2008 12:05:13 +0100 Received: from ncvielp07.home ([192.168.1.51]) by genuine.home with esmtpa (Exim 4.50) id 1JO9oP-00030P-Fw; Sun, 10 Feb 2008 11:53:30 +0100 Message-ID: <47AED7BA.90405@fischer.name> Date: Sun, 10 Feb 2008 11:53:46 +0100 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> X-Enigmail-Version: 0.95.6 OpenPGP: id=C2272BD0; url=http://markus.fischer.name/my_public_key.txt Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -32 X-Spam-Level: --- X-Spam-Report: Spam detection software, running on the system "genuine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Jan Schneider wrote: > Zitat von Jingcheng Zhang : > >> Hello, >> 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. [...] Content analysis details: (-3.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.4999] 0.0 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] [patch] expose PHP version details as constants From: markus@fischer.name (Markus Fischer) Jan Schneider wrote: > Zitat von Jingcheng Zhang : > >> Hello, >> 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. That's not entirely true, isn't it? Think __FILE__ is per file, then we've __FUNCTION__, __LINE__, etc. sincerely, - Markus