summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/simplexml/simplexml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 7980c00bd5..9724d9371c 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -332,6 +332,7 @@ static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements,
zval_dtor(&tmp_zv);
}
if (Z_TYPE_P(return_value) == IS_NULL) {
+ return_value->refcount = 1;
zval_ptr_dtor(&return_value);
return_value = &EG(uninitialized_zval);
}