summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/dom/php_dom.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index 44e56a557e..0b3babb6d3 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -267,10 +267,6 @@ void dom_write_property(zval *object, zval *member, zval *value TSRMLS_DC)
}
if (ret == SUCCESS) {
hnd->write_func(obj, value TSRMLS_CC);
- if (! PZVAL_IS_REF(value) && value->refcount == 0) {
- value->refcount++;
- zval_ptr_dtor(&value);
- }
} else {
std_hnd = zend_get_std_object_handlers();
std_hnd->write_property(object, member, value TSRMLS_CC);