Skip to content

Instantly share code, notes, and snippets.

@sptndc
Created October 20, 2018 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sptndc/dfbc3176bc1bcea28c3a4821f2c42546 to your computer and use it in GitHub Desktop.
Save sptndc/dfbc3176bc1bcea28c3a4821f2c42546 to your computer and use it in GitHub Desktop.
Patch for PHP fix bison check
diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
index 7fa8c99..0375c9c 100644
--- a/Zend/acinclude.m4
+++ b/Zend/acinclude.m4
@@ -9,7 +9,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
# non-working versions, e.g. "3.0 3.2";
# remove "none" when introducing the first incompatible bison version an
# separate any following additions by spaces
- bison_version_exclude="3.0"
+ bison_version_exclude="3.0.0"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
@@ -21,7 +21,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
php_cv_bison_version=invalid
if test -n "$bison_version_vars"; then
set $bison_version_vars
- bison_version="${1}.${2}"
+ bison_version="${1}.${2}.${3}"
bison_version_num="`expr ${1} \* 100 + ${2}`"
if test $bison_version_num -ge $bison_version_min; then
php_cv_bison_version="$bison_version (ok)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment