Skip to content

Commit

Permalink
zend_ast: Remove unused ZEND_AST_EXIT (#17417)
Browse files Browse the repository at this point in the history
This AST node is no longer used since `exit()` was made a real function in
GH-13483.
  • Loading branch information
TimWolla authored Jan 9, 2025
1 parent 757faee commit e421a44
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions Zend/zend_ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -2150,13 +2150,6 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
break;
case ZEND_AST_CLONE:
PREFIX_OP("clone ", 270, 271);
case ZEND_AST_EXIT:
if (ast->child[0]) {
FUNC_OP("exit");
} else {
APPEND_STR("exit");
}
break;
case ZEND_AST_PRINT:
PREFIX_OP("print ", 60, 61);
case ZEND_AST_INCLUDE_OR_EVAL:
Expand Down
1 change: 0 additions & 1 deletion Zend/zend_ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ enum _zend_ast_kind {
ZEND_AST_SILENCE,
ZEND_AST_SHELL_EXEC,
ZEND_AST_CLONE,
ZEND_AST_EXIT,
ZEND_AST_PRINT,
ZEND_AST_INCLUDE_OR_EVAL,
ZEND_AST_UNARY_OP,
Expand Down

0 comments on commit e421a44

Please sign in to comment.