[pmwiki-users] version numbering format

Patrick R. Michaud pmichaud at pobox.com
Wed Aug 13 07:10:47 CDT 2008


On Wed, Aug 13, 2008 at 10:50:41AM +0200, Peter Bowers wrote:
> I've got some code that works in one way with beta 67 and after and in
> a different way prior to beta 67 (has to do with sessions and
> passwords).
> 
> My question is what $Version will look like when we move away from beta.
> 
> Will this code work?

Use $VersionNum -- it's easier (and designed for this purpose):

    if ($VersionNum < 2001967) {
        ... stuff prior to 2.2.0-beta67 ...
    } else {
        ... stuff 2.2.0-beta67 and later ...
    }

$VersionNum is guaranteed to always be an increasing value from
one release to the next.  For the 2.2.0 official release $VersionNum
will be 2002000.

Pm



More information about the pmwiki-users mailing list