Skip to content

Commit bb28de9

Browse files
committed
opcache: use zend_ast_size helper in zend_persist_ast_calc
1 parent 5011c39 commit bb28de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_persist_calc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void zend_persist_ast_calc(zend_ast *ast)
8787
}
8888
} else {
8989
uint32_t children = zend_ast_get_num_children(ast);
90-
ADD_SIZE(sizeof(zend_ast) - sizeof(zend_ast *) + sizeof(zend_ast *) * children);
90+
ADD_SIZE(zend_ast_size(children));
9191
for (i = 0; i < children; i++) {
9292
if (ast->child[i]) {
9393
zend_persist_ast_calc(ast->child[i]);

0 commit comments

Comments
 (0)