Skip to content

Commit bb5e2fa

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

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
@@ -554,7 +554,7 @@ static void xml_add_to_info(xml_parser *parser, zend_string *name)
554554
SEPARATE_ARRAY(Z_REFVAL(parser->info));
555555
zend_array *arr = Z_ARRVAL_P(Z_REFVAL(parser->info));
556556

557-
if ((element = zend_hash_find(arr, name)) == NULL) {
557+
if ((element = zend_hash_lookup(arr, name)) == NULL) {
558558
zval values;
559559
array_init(&values);
560560
element = zend_hash_add(arr, name, &values);

0 commit comments

Comments
 (0)