php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75105 zend_ini_parser.y:294: error: syntax error before '(' token
Submitted: 2017-08-22 07:02 UTC Modified: 2018-11-18 22:32 UTC
Votes:5
Avg. Score:3.8 ± 1.2
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:3 (75.0%)
From: 813577991 at qq dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 7.1.8 OS: linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: 813577991 at qq dot com
New email:
PHP Version: OS:

 

 [2017-08-22 07:02 UTC] 813577991 at qq dot com
Description:
------------
when I compile, following errors stoped the process:
/bin/sh /root/php-7.1.8/libtool --silent --preserve-dup-deps --mode=compile cc  -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/ -I/root/php-7.1.8/Zend/ -DPHP_ATOM_INC -I/root/php-7.1.8/include -I/root/php-7.1.8/main -I/root/php-7.1.8 -I/root/php-7.1.8/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.1.8/ext/sqlite3/libsqlite -I/root/php-7.1.8/TSRM -I/root/php-7.1.8/Zend    -I/usr/include -g -O2 -DZEND_SIGNALS   -c /root/php-7.1.8/Zend/zend_ini_parser.c -o Zend/zend_ini_parser.lo 
/root/php-7.1.8/Zend/zend_ini_parser.y: In function `yydestruct':
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
/root/php-7.1.8/Zend/zend_ini_parser.y:294: error: syntax error before '(' token
make: *** [Zend/zend_ini_parser.lo] Error 1


Patches

alpha (last revision 2017-08-22 07:03 UTC by 813577991 at qq dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-27 09:18 UTC] graylilitheva at hotmail dot com
just delete this line
it seems work
 [2018-08-13 01:45 UTC] carusogabriel@php.net
Can you confirm if this bug is still opened? Sounds like was temporarily, and should be fixed by now.
 [2018-08-13 02:43 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2018-11-18 22:32 UTC] cmb@php.net
-Status: Feedback +Status: No Feedback
 [2018-11-18 22:32 UTC] cmb@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2019-06-11 16:51 UTC] php at geoff dot dj
For what it's worth, for anyone else finding this same issue (as I have) when building on older servers, the issue is in the test for valid versions of yacc/bison. The test sometimes fails to correctly identify that the version is too old.

My fix was simply to add

php_cv_bison_version=invalid

to the section just before

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
  fi
  case $php_cv_bison_version in
    ""|invalid)

in the configure file - since if you have an invalid bison version the recompile won't attempt to rebuild the parsers, which (if all you're doing is recompiling without changing the parser) doesn't matter anyway.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC