# zend bison check

- Thread: https://externals.io/message/68451
- Original archive: https://news-web.php.net/php.internals/68451
- Started by Michael Wallner on 2013-08-08T18:56:09+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #68451 — Michael Wallner — 2013-08-08T18:56:09+00:00

URL: https://externals.io/message/68451#68451

As I have no Zend karma, is anybody kind enough to merge the bison
blacklist patch?
https://github.com/php/php-src/pull/402

-- 
Regards,
Mike

---

## #68457 — keisial@gmail.com — 2013-08-08T23:05:53+00:00

URL: https://externals.io/message/68451#68457 · In reply to: #68451

> As I have no Zend karma, is anybody kind enough to merge the bison
> blacklist patch?
> https://github.com/php/php-src/pull/402
Maybe it should be bison_version_exclude="none" so that the error 
message is nicer?

---

## #68458 — Yasuo Ohgaki — 2013-08-09T00:48:50+00:00

URL: https://externals.io/message/68451#68458 · In reply to: #68457

Hi,

I proposed that specify any bison as developer wants.
It seems it is not merged, yet.

Usage:
YACC=/usr/local/bin/mybison ./configure

diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
index 454513f..1440a2a 100644
--- a/Zend/acinclude.m4
+++ b/Zend/acinclude.m4
@@ -12,7 +12,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
   bison_version=none
   if test "$YACC"; then
     AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
-      bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison'
| cut -d ' ' -f 4 | $SED -e 's/\./
+      bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison'
| cut -d ' ' -f 4 | $SED -e 's/\./
       php_cv_bison_version=invalid
       if test -n "$bison_version_vars"; then
         set $bison_version_vars


--
Yasuo Ohgaki
yohgaki@ohgaki.net




> 
>
> > […]
> Maybe it should be bison_version_exclude="none" so that the error message
> is nicer?

---

## #68459 — Michael Wallner — 2013-08-09T06:47:22+00:00

URL: https://externals.io/message/68451#68459 · In reply to: #68458

> Hi,
>
> I proposed that specify any bison as developer wants.
> It seems it is not merged, yet.
>
> Usage:
> YACC=/usr/local/bin/mybison ./configure
>
> diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
> index 454513f..1440a2a 100644
> --- a/Zend/acinclude.m4
> +++ b/Zend/acinclude.m4
> @@ -12,7 +12,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
>    bison_version=none
>    if test "$YACC"; then
>      AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
> -      bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' |
> cut -d ' ' -f 4 | $SED -e 's/\./
> +      bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' |
> cut -d ' ' -f 4 | $SED -e 's/\./
>        php_cv_bison_version=invalid
>        if test -n "$bison_version_vars"; then
>          set $bison_version_vars
>


>
> 
> > […]

Thank you, I incorporated all your suggestions


-- 
Regards,
Mike
