Re: [patch] expose PHP version details as constants

From: Date: Mon, 11 Feb 2008 05:11:41 +0000
Subject: Re: [patch] expose PHP version details as constants
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-35350@lists.php.net to get a copy of this message
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

« previous php.internals (#35350) next »