Re: [patch] expose PHP version details as constants
| From: | Lars Strojny | Date: | Mon, 11 Feb 2008 11:51:00 +0000 |
| Subject: | Re: [patch] expose PHP version details as constants | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35368@lists.php.net to get a copy of this message | ||
Hi,
Am Sonntag, den 10.02.2008, 21:11 -0800 schrieb Stanislav Malyshev:
[...]
> 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?
So here we are. The following patch[1] adds support for the constant
__DIR__ which is dirname(__FILE__).
[1] http://lars.schokokeks.org/php/dir-constant-2.diff
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc