8000 Add assertions verifying that zend_ast_decl AST nodes are not treated as regular zend_ast nodes by TimWolla · Pull Request #17390 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Add assertions verifying that zend_ast_decl AST nodes are not treated as regular zend_ast nodes #17390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
zend_compile: Do not traverse children of ZEND_AST_CLOSURE in zend_co…
…mpile_const_expr()
  • Loading branch information
TimWolla committed Jan 8, 2025
commit bdb41ad57d41c4e8d5ca53f53458f0112f68f287
3 changes: 2 additions & 1 deletion Zend/zend_compile.c
4A08
Original file line number Diff line number Diff line change
Expand Up @@ -11293,7 +11293,8 @@ static void zend_compile_const_expr(zend_ast **ast_ptr, void *context) /* {{{ */
break;
case ZEND_AST_CLOSURE:
zend_compile_const_expr_closure(ast_ptr);
break;
/* Return, because we do not want to traverse the children. */
return;
}

zend_ast_apply(ast, zend_compile_const_expr, context);
Expand Down
0