Created
October 20, 2018 08:53
-
-
Save sptndc/dfbc3176bc1bcea28c3a4821f2c42546 to your computer and use it in GitHub Desktop.
Patch for PHP fix bison check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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