Re: [patch] expose PHP version details as constants
| From: | Stanislav Malyshev | 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 | ||
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.comIs 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.