]> granicus.if.org Git - php/commitdiff
Backport fix for bug #78750
authorPeter Kokot <peterkokot@gmail.com>
Sun, 7 Jun 2020 19:53:39 +0000 (21:53 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 3 Dec 2020 09:07:09 +0000 (10:07 +0100)
Cherry-picks
fe2afef36fc78c267133ddd403f48e0ee799efbc
and
86e2b7bb70131b48636cded57e5bc62b81b79865.

build/php.m4

index 468b4984c7b681125dd45aaac3378407565fbb92..86b522a3984515e8b153ee051c5c5fb6478f0067 100644 (file)
@@ -1783,6 +1783,9 @@ AC_DEFUN([PHP_PROG_BISON], [
     AC_MSG_CHECKING([for bison version])
 
     php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z)
+    if test -z "$php_bison_version"; then
+      php_bison_version=0.0.0
+    fi
     ac_IFS=$IFS; IFS="."
     set $php_bison_version
     IFS=$ac_IFS
@@ -1846,6 +1849,9 @@ AC_DEFUN([PHP_PROG_RE2C],[
     AC_MSG_CHECKING([for re2c version])
 
     php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null)
+    if test -z "$php_re2c_version"; then
+      php_re2c_version=0.0.0
+    fi
     ac_IFS=$IFS; IFS="."
     set $php_re2c_version
     IFS=$ac_IFS