php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66231 PHP 5.4 no longer builds with bison <= 2.3
Submitted: 2013-12-03 23:25 UTC Modified: 2014-12-01 05:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: aharvey@php.net Assigned: laruence (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 5.4Git-2013-12-03 (Git) OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: aharvey@php.net
New email:
PHP Version: OS:

 

 [2013-12-03 23:25 UTC] aharvey@php.net
Description:
------------
A git checkout of PHP-5.4 no longer builds with versions of bison before 2.4 due to the use of %code requires.

The specific errors:

/home/aharvey/trees/php-src/5.4/Zend/zend_language_parser.y:50.1-5: invalid directive: `%code'
/home/aharvey/trees/php-src/5.4/Zend/zend_language_parser.y:50.7-14: syntax error, unexpected identifier

This came about in the fix for bug #64503: https://github.com/php/php-src/commit/a4862503d485abf449e0565ac03157d859a31bf7


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-12 08:35 UTC] tyrael@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: laruence
 [2014-12-01 05:18 UTC] stas@php.net
-Status: Assigned +Status: Not a bug
 [2014-12-01 05:18 UTC] stas@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Since 5.4 is closed to non-security fixes, this probably won't be fixed, so the alternative is to upgrade bison.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC