Skip to content

Commit bdb41ad

Browse files
committed
zend_compile: Do not traverse children of ZEND_AST_CLOSURE in zend_compile_const_expr()
1 parent a091e52 commit bdb41ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11293,7 +11293,8 @@ static void zend_compile_const_expr(zend_ast **ast_ptr, void *context) /* {{{ */
1129311293
break;
1129411294
case ZEND_AST_CLOSURE:
1129511295
zend_compile_const_expr_closure(ast_ptr);
11296-
break;
11296+
/* Return, because we do not want to traverse the children. */
11297+
return;
1129711298
}
1129811299

1129911300
zend_ast_apply(ast, zend_compile_const_expr, context);

0 commit comments

Comments
 (0)