Skip to content

Commit e421a44

Browse files
authored
zend_ast: Remove unused ZEND_AST_EXIT (#17417)
This AST node is no longer used since `exit()` was made a real function in GH-13483.
1 parent 757faee commit e421a44

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Zend/zend_ast.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,13 +2150,6 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
21502150
break;
21512151
case ZEND_AST_CLONE:
21522152
PREFIX_OP("clone ", 270, 271);
2153-
case ZEND_AST_EXIT:
2154-
if (ast->child[0]) {
2155-
FUNC_OP("exit");
2156-
} else {
2157-
APPEND_STR("exit");
2158-
}
2159-
break;
21602153
case ZEND_AST_PRINT:
21612154
PREFIX_OP("print ", 60, 61);
21622155
case ZEND_AST_INCLUDE_OR_EVAL:

Zend/zend_ast.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ enum _zend_ast_kind {
8888
ZEND_AST_SILENCE,
8989
ZEND_AST_SHELL_EXEC,
9090
ZEND_AST_CLONE,
91-
ZEND_AST_EXIT,
9291
ZEND_AST_PRINT,
9392
ZEND_AST_INCLUDE_OR_EVAL,
9493
ZEND_AST_UNARY_OP,

0 commit comments

Comments
 (0)