summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 16e4c8539e..fde83526f6 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -372,7 +372,7 @@ static zval *sxe_prop_dim_read(zval *object, zval *member, zend_bool elements, z
zval_dtor(&tmp_zv);
}
- if (ZVAL_IS_NULL(rv)) {
+ if (ZVAL_IS_UNDEF(rv)) {
return &EG(uninitialized_zval);
}