mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/tidy: array optimisations, children node arrays as packed. (#18375)
This commit is contained in:
parent
8f6bc97a36
commit
0c2025cdc4
1 changed files with 1 additions and 0 deletions
|
@ -705,6 +705,7 @@ static void tidy_add_node_default_properties(PHPTidyObj *obj)
|
|||
|
||||
if (tempnode) {
|
||||
array_init(&children);
|
||||
zend_hash_real_init_packed(Z_ARRVAL(children));
|
||||
do {
|
||||
tidy_create_node_object(&temp, obj->ptdoc, tempnode);
|
||||
add_next_index_zval(&children, &temp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue