Bison 3.6 seems to use "end of file" rather than "$end" for this.
Force the same on older bison versions to be consistent.
unlink(__DIR__ . "/bug70748.ini");
?>
--EXPECTF--
-Warning: syntax error, unexpected $end, expecting '}' in %sbug70748.ini on line %d
+Warning: syntax error, unexpected end of file, expecting '}' in %sbug70748.ini on line %d
in %sbug70748.php on line %d
bool(false)
%define api.pure full
%define parse.error verbose
+%token END 0 "end of file"
%token TC_SECTION
%token TC_RAW
%token TC_CONSTANT
var_dump(parse_ini_string('a="b'));
?>
--EXPECTF--
-Warning: syntax error, unexpected $end, expecting TC_DOLLAR_CURLY or TC_QUOTED_STRING or '"' in Unknown on line 1
+Warning: syntax error, unexpected end of file, expecting TC_DOLLAR_CURLY or TC_QUOTED_STRING or '"' in Unknown on line 1
in %s on line %d
bool(false)