mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/tidy: array optimisations, children node arrays as packed. (#18375)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user