Re: [PHP-PEAR] RCS tags
[email protected] (Andrei Zmievski)
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 08 Feb 2001, Colin Viebrock wrote:
> Except I'm going to suggest a different variable name before people
> say $_VERSION isn't good.
>
> $_RCS_ID perhaps?
>
> $_VERSION could be reservered for the release number of your class
> (i.e. "this is the 2.0 version of my Crypt::CBC class"). In fact,
> if we insist that people use this, it makes things like this easier
> and standard across classes:
>
> <?php
> $foo = new MyPearClass;
> if ($foo->_VERSION < 2.0) {
> die ("This script requires MyPearClass 2.0 or higher.");
> }
> ...
> ?>
Why $_RCS_ID instead of $_rcs_id?
-Andrei
* Software never has bugs. It just develops random features. *