Skip to content

Commit db678db

Browse files
committed
Zend: remove the now useless parse_error global
1 parent 3c347c9 commit db678db

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

‎Zend/zend.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,6 @@ void zend_set_utility_values(zend_utility_values *utility_values) /* {{{ */
11041104
/* this should be compatible with the standard zenderror */
11051105
ZEND_COLD void zenderror(const char *error) /* {{{ */
11061106
{
1107-
CG(parse_error) = 0;
1108-
11091107
if (EG(exception)) {
11101108
/* An exception was thrown in the lexer, don't throw another in the parser. */
11111109
return;

‎Zend/zend_globals.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ struct _zend_compiler_globals {
8181

8282
HashTable *auto_globals;
8383

84-
zend_bool parse_error;
8584
zend_bool in_compilation;
8685
zend_bool short_tags;
8786

‎Zend/zend_language_scanner.l

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ static void yy_scan_buffer(char *str, unsigned int len)
188188

189189
void startup_scanner(void)
190190
{
191-
CG(parse_error) = 0;
192191
CG(doc_comment) = NULL;
193192
CG(extra_fn_flags) = 0;
194193
zend_stack_init(&SCNG(state_stack), sizeof(int));
@@ -203,7 +202,6 @@ static void heredoc_label_dtor(zend_heredoc_label *heredoc_label) {
203202

204203
void shutdown_scanner(void)
205204
{
206-
CG(parse_error) = 0;
207205
RESET_DOC_COMMENT();
208206
zend_stack_destroy(&SCNG(state_stack));
209207
zend_stack_destroy(&SCNG(nest_location_stack));

0 commit comments

Comments
 (0)