Re: [PHP4BETA] checking PHP version
| From: | Stig Sæther Bakken | Date: | Wed, 21 Apr 1999 16:17:20 +0000 |
| Subject: | Re: [PHP4BETA] checking PHP version | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-223@lists.php.net to get a copy of this message | ||
Sascha Schumann wrote:
>
> What is the recommened way of checking for PHP3/PHP4?
>
> I see the content of php_version.h, but that it is not suitable for a cpp
> decision.
We should probably add a macro called PHP_API_VERSION in php.h/modules.h
or change PHP_VERSION to a number. The former is probably safer. We
could do like Apache and make it an YYYYMMDD date, or based on the
version number. I vote for using a date.
- Stig
--
PHP 4 Beta