Re: [patch] expose PHP version details as constants
| From: | Marcus Boerger | Date: | Sat, 09 Feb 2008 13:39:40 +0000 |
| Subject: | Re: [patch] expose PHP version details as constants | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35336@lists.php.net to get a copy of this message | ||
Hello Pierre,
yeah nice idea. I am wondering if you might want to add the cvs tag, too?
E.g.: PHP_TAG = 'PHP_5_3'
marcus
Friday, February 8, 2008, 1:52:27 PM, you wrote:
> Hi,
> Testing the PHP version can be much easier and faster if the versions
> details were exposed via the constants, like what we use internally.
> This little patch expose what we have in php_version.h
> #define PHP_MAJOR_VERSION 5
> #define PHP_MINOR_VERSION 2
> #define PHP_RELEASE_VERSION 6
> #define PHP_EXTRA_VERSION "-dev"
> #define PHP_VERSION "5.2.6-dev" << already available as contant
> #define PHP_VERSION_ID 50206
> Patch against 5.2 attached.
> Any objections?
> Cheers,
Best regards,
Marcus