Skip to content
Closed
Changes from all commits
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
6 changes: 6 additions & 0 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -11608,6 +11608,12 @@ static void zend_compile_expr_inner(znode *result, zend_ast *ast) /* {{{ */
zend_compile_match(result, ast);
return;
default:
zend_error(
E_ERROR,
"Unknown AST node kind %d. Expression: \"%s\".",
ast->kind,
ZSTR_VAL(zend_ast_export("", ast, ""))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that zend_ast_export must be functional, which is not given when the AST is broken so that PHP is unable to handle it.

The included gdb script is capable of pretty-printing the AST. I suggest debugging this situation with gdb.

);
ZEND_ASSERT(0 /* not supported */);
}
}
Expand Down