From: George B. <gbr...@lu...> - 2004-11-27 14:31:33
|
How far back in the phpWS versions is version_compare() available? On 11/11/04 4:18 PM, "Steven Levin" <st...@tu...> wrote: > I just wanted to let all third party module developers know that the > next core version of phpwebsite will be going up to 0.10.0 What this > means is that the old way of checking versions will no longer work and > you encouraged to start using version_compare() > > Old core version check: > > if ($GLOBALS['core']->version < "0.9.3-2") { > echo "You must upgrade to version 0.9.3-2 or greater to install this > module."; > } > > This should be updated to: > > if (version_compare($GLOBALS['core']->version, "0.9.3-2") < 0) { > echo "You must upgrade to version 0.9.3-2 or greater to install this > module."; > } > > You should also start using version_compare() in your update.php files > if you are going to follow the X.X.X version scheme. > > Thanks to rhalff and rizzo for their help with this issue. ______________________________________ George Brackett, Principal George Brackett Associates 617 413 4316 / gbr...@lu... http://www.luceatlux.com/gba/ |