summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index fde83526f6..c98df426c1 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -373,7 +373,7 @@ static zval *sxe_prop_dim_read(zval *object, zval *member, zend_bool elements, z
}
if (ZVAL_IS_UNDEF(rv)) {
- return &EG(uninitialized_zval);
+ ZVAL_COPY_VALUE(rv, &EG(uninitialized_zval));
}
return rv;