1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00

Merge branch 'PHP-7.1'

* PHP-7.1:
  fix re2c version comparison
This commit is contained in:
Anatol Belski
2017-04-11 11:38:07 +02:00

View File

@@ -2890,6 +2890,10 @@ function toolset_setup_project_tools()
RE2CVERS = probe_binary(RE2C, "version");
STDOUT.WriteLine(' Detected re2c version ' + RE2CVERS);
if (RE2CVERS.match(/^\d+.\d+$/)) {
RE2CVERS += ".0";
}
intvers = RE2CVERS.replace(pattern, '') - 0;
intmin = MINRE2C.replace(pattern, '') - 0;