We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5011c39 commit bb28de9Copy full SHA for bb28de9
ext/opcache/zend_persist_calc.c
@@ -87,7 +87,7 @@ static void zend_persist_ast_calc(zend_ast *ast)
87
}
88
} else {
89
uint32_t children = zend_ast_get_num_children(ast);
90
- ADD_SIZE(sizeof(zend_ast) - sizeof(zend_ast *) + sizeof(zend_ast *) * children);
+ ADD_SIZE(zend_ast_size(children));
91
for (i = 0; i < children; i++) {
92
if (ast->child[i]) {
93
zend_persist_ast_calc(ast->child[i]);
0 commit comments