Edit report at https://bugs.php.net/bug.php?id=69055&edit=1
ID: 69055
Updated by: nikic@php.net
Reported by: worldoffame at hotmail dot com
Summary: Bison 3.0.2 not supported
Status: Re-Opened
Type: Bug
Package: *Compile Issues
Operating System: Ubuntu 14
PHP Version: 5.6.27
Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
To clarify, PHP 5.6 does not support Bison 3.0 in any version -- the documentation is wrong about
this, the configure check is correct. Bison 3.0 is supported as of PHP 7.
Previous Comments:
------------------------------------------------------------------------
[2016-10-16 16:15:19] auroraeosrose@php.net
With the patch non-zts versions are building/working just fine
But it seems that ZTS with bison 3 is NOT working right
the YYPARSE_PARAM and YYLEX_PARAM usage is deprecated in favor of
%lex-param and %parse-param
still fiddling on a fix for that - that doesn't break the world (unfortunately parse-param also
passes in to yyerror which makes everything harder)
------------------------------------------------------------------------
[2016-10-14 15:33:30] auroraeosrose@php.net
The following patch has been added/updated:
Patch Name: fix_bison_check
Revision: 1476459210
URL: https://bugs.php.net/patch-display.php?bug=69055&patch=fix_bison_check&revision=1476459210
------------------------------------------------------------------------
[2016-10-14 11:14:44] tyrael@php.net
indeed, our exclude check only check major+micro version, so the current 3.0 in the PHP-5.6 branch
won't allow 3.0.2 bison for example.
let me fix that.
------------------------------------------------------------------------
[2016-07-27 05:52:43] ju1ius at laposte dot net
This bug still exists as of today using PHP-5.6 git branch.
Bison 2 is not available in debian stable anymore. https://packages.debian.org/search?keywords=bison
According to the docs, 3.0.4 should work, but configure does not accept it.
------------------------------------------------------------------------
[2016-07-15 02:28:45] pbw at pbw dot id dot au
The bison check excludes bison 3.0, but the PHP manual at http://php.net/manual/en/install.unix.php
says of the bison requirement for building 5.6
bison:
PHP 5.6: 2.4 or later, excluding 3.0 only (3.0.1 and later are OK)
Is this true? If it is, then the bison test needs to be extended to accommodate
major.minor.whatever, so that the exclusion is specific to 3.0. If not, the documentation needs to
be changed.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69055
--
Edit this bug report at https://bugs.php.net/bug.php?id=69055&edit=1