summaryrefslogtreecommitdiff
path: root/ext/json/json_parser.y
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-03-19 00:33:53 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-19 20:29:20 +0100
commit864366ef203b5faebf2cb183395d5165cf051a4f (patch)
treefc314fa3d2451015d5acb69f96df8b7bf9639e59 /ext/json/json_parser.y
parent38b22448f819aff57157d6f84d4cf3c88bcb657d (diff)
downloadphp-git-864366ef203b5faebf2cb183395d5165cf051a4f.tar.gz
Upgrade deprecated directives and use non-posix bison
With Bison 3.0 some directives are deprecated: - %name-prefix "x" should be %define api.prefix {x} - %error-verbose should be %define parse.error verbose Bison 3.3 also started emiting more warnings and since PHP souce parsers are not POSIX compliant this patch fixes this as pointed out via 495a46aa1dc564656bf919cb49aae48a31ae15f4.
Diffstat (limited to 'ext/json/json_parser.y')
-rw-r--r--ext/json/json_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y
index aa37c03658..c3d0976ad9 100644
--- a/ext/json/json_parser.y
+++ b/ext/json/json_parser.y
@@ -47,7 +47,7 @@ int json_yydebug = 1;
}
%pure-parser
-%name-prefix "php_json_yy"
+%define api.prefix {php_json_yy}
%lex-param { php_json_parser *parser }
%parse-param { php_json_parser *parser }