Skip to content

Use %define parse.error verbose instead of YYERROR_VERBOSE #5125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Zend/zend_ini_parser.y
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%require "3.0"
%{
/*
+----------------------------------------------------------------------+
Expand Down Expand Up @@ -31,7 +32,6 @@
#include "win32/syslog.h"
#endif

#define YYERROR_VERBOSE
#define YYSTYPE zval

int ini_parse(void);
Expand Down Expand Up @@ -290,6 +290,7 @@ static void zval_ini_dtor(zval *zv)

%expect 0
%define api.pure full
%define parse.error verbose

%token TC_SECTION
%token TC_RAW
Expand Down
3 changes: 2 additions & 1 deletion Zend/zend_language_parser.y
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%require "3.0"
%{
/*
+----------------------------------------------------------------------+
Expand Down Expand Up @@ -32,7 +33,6 @@
#define yytnamerr zend_yytnamerr
static YYSIZE_T zend_yytnamerr(char*, const char*);

#define YYERROR_VERBOSE
#define YYSTYPE zend_parser_stack_elem

#ifdef _MSC_VER
Expand All @@ -43,6 +43,7 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
%}

%define api.pure full
%define parse.error verbose
%expect 0

%code requires {
Expand Down