com php-src: fix re2c version comparison: win32/build/confutils.js

[email protected] (Anatol Belski)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    dd17659b869e44a589edc5a26e0f0bcc869597f2
Author:    Anatol Belski <[email protected]>         Tue, 11 Apr 2017 10:59:45 +0200
Parents:   76c9b584319b75b203c7e1ed7ed82b7bdbe4c442
Branches:  PHP-7.0 PHP-7.1 master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=dd17659b869e44a589edc5a26e0f0bcc869597f2

Log:
fix re2c version comparison

Changed paths:
  M  win32/build/confutils.js


Diff:
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 8eb0c19..48ef2a6 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -2663,6 +2663,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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.