Skip to content

Commit 67fc067

Browse files
committed
ext/spl: Use zend_hash_add() for missing array keys
1 parent 1655d57 commit 67fc067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/xml/xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static void xml_add_to_info(xml_parser *parser, zend_string *name)
557557
if ((element = zend_hash_find(arr, name)) == NULL) {
558558
zval values;
559559
array_init(&values);
560-
element = zend_hash_update(arr, name, &values);
560+
element = zend_hash_add(arr, name, &values);
561561
}
562562

563563
add_next_index_long(element, parser->curtag);

0 commit comments

Comments
 (0)