summaryrefslogtreecommitdiff
path: root/perf/perf-db2.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2015-12-03 17:18:32 +0000
committerDamien Regad <dregad@mantisbt.org>2015-12-03 17:18:32 +0000
commit08292da59bf038999afb550be3bbda19aedd4181 (patch)
treec59cd496f6966279b865509afe0c1dde9d85b6d4 /perf/perf-db2.inc.php
parent453f080abb35e2ba5722217f1b53f605738322df (diff)
downloadadodb-08292da59bf038999afb550be3bbda19aedd4181.tar.gz
adodb-08292da59bf038999afb550be3bbda19aedd4181.tar.bz2
adodb-08292da59bf038999afb550be3bbda19aedd4181.zip
ADOConnection::Version() now handles SemVer
In the past, ADOdb versions were numbered X.YY, and hot fixes were identified by an optional letter suffix, e.g. 5.17, 5.18a. Starting with 5.20, we switched to Semantic Versioning. The regex in ADOConnection::Version() was not adjusted to reflect this, and the function incorrectly returns '5.20' instead of '5.20.0'. The code now correctly handles SemVer version numbers, and also allows the following pre-production suffixes: dev, alpha, beta, rc; the last 3 must be followed by an additional version number (e.g. 5.21.0-beta.1). In case the ADOdb version string (defined in $ADODB_vers global) does not match the regex, the function outputs a warning and falls back to returning a substring starting with 1st character (excluding leading 'v' if present), until the first whitespace or the end of the string). Fixes #164
Diffstat (limited to 'perf/perf-db2.inc.php')
0 files changed, 0 insertions, 0 deletions