Skip to content

Commit 3f0f7ab

Browse files
committed
Print hooks in parameter exports
1 parent 0cba85b commit 3f0f7ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Zend/zend_ast.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,14 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
25672567
}
25682568
smart_str_appendc(str, '$');
25692569
zend_ast_export_name(str, ast->child[1], 0, indent);
2570-
APPEND_DEFAULT_VALUE(2);
2570+
if (ast->child[2]) {
2571+
smart_str_appends(str, " = ");
2572+
zend_ast_export_ex(str, ast->child[2], 0, indent);
2573+
}
2574+
if (ast->child[5]) {
2575+
zend_ast_export_hook_list(str, zend_ast_get_list(ast->child[5]), indent);
2576+
}
2577+
break;
25712578
case ZEND_AST_ENUM_CASE:
25722579
if (ast->child[3]) {
25732580
zend_ast_export_attributes(str, ast->child[3], indent, 1);

0 commit comments

Comments
 (0)