mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: fix re2c version comparison
This commit is contained in:
commit
be540347e2
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue