Skip to content

Commit d386ed1

Browse files
petknikic
authored andcommitted
Backport fix for bug #78750
Cherry-picks fe2afef and 86e2b7b.
1 parent f2833ca commit d386ed1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/php.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,9 @@ AC_DEFUN([PHP_PROG_BISON], [
17831783
AC_MSG_CHECKING([for bison version])
17841784
17851785
php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z)
1786+
if test -z "$php_bison_version"; then
1787+
php_bison_version=0.0.0
1788+
fi
17861789
ac_IFS=$IFS; IFS="."
17871790
set $php_bison_version
17881791
IFS=$ac_IFS
@@ -1846,6 +1849,9 @@ AC_DEFUN([PHP_PROG_RE2C],[
18461849
AC_MSG_CHECKING([for re2c version])
18471850
18481851
php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null)
1852+
if test -z "$php_re2c_version"; then
1853+
php_re2c_version=0.0.0
1854+
fi
18491855
ac_IFS=$IFS; IFS="."
18501856
set $php_re2c_version
18511857
IFS=$ac_IFS

0 commit comments

Comments
 (0)