Skip to content

Commit 91eb9a1

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Revert fix for bug 76813 and re2c version bump
2 parents 3b54202 + 95a13ca commit 91eb9a1

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ PHP_RUNPATH_SWITCH
154154
dnl Checks for some support/generator progs.
155155
PHP_PROG_AWK
156156
PHP_PROG_BISON([3.0.0])
157-
PHP_PROG_RE2C([0.13.7])
157+
PHP_PROG_RE2C([0.13.4])
158158

159159
PHP_ARG_ENABLE([re2c-cgoto],
160160
[whether to enable computed goto gcc extension with re2c],

sapi/phpdbg/phpdbg_lexer.l

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void phpdbg_init_lexer (phpdbg_param_t *stack, char *input) {
3333

3434
YYSETCONDITION(INITIAL);
3535

36-
LEX(text) = YYCURSOR = YYMARKER = (unsigned char *) input;
36+
LEX(text) = YYCURSOR = (unsigned char *) input;
3737
LEX(len) = strlen(input);
3838
}
3939

@@ -165,10 +165,6 @@ INPUT ("\\"[#"']|["]("\\\\"|"\\"["]|[^\n\000"])+["]|[']("\\"[']|"\\\\"|[^\
165165
return T_ID;
166166
}
167167
168-
<NORMAL>* {
169-
return T_UNEXPECTED;
170-
}
171-
172168
<RAW>{INPUT} {
173169
phpdbg_init_param(yylval, STR_PARAM);
174170
yylval->str = estrdup(yytext);

sapi/phpdbg/phpdbg_parser.y

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,9 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
6464
%% /* Rules */
6565

6666
input
67-
: non_empty_input { $$ = $1; }
68-
| %empty
69-
;
70-
71-
non_empty_input
7267
: command { $$ = $1; }
73-
| non_empty_input T_SEPARATOR command { phpdbg_stack_separate($1.top); $$ = $3; }
68+
| input T_SEPARATOR command { phpdbg_stack_separate($1.top); $$ = $3; }
69+
| %empty
7470
;
7571

7672
command

sapi/phpdbg/tests/bug76813.phpt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)