diff options
Diffstat (limited to 'ext/simplexml/simplexml.c')
| -rw-r--r-- | ext/simplexml/simplexml.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 9724d9371c..05b7f11c9b 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -332,8 +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); + FREE_ZVAL(return_value); return_value = &EG(uninitialized_zval); } |
