summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-07-05 17:55:54 +0300
committerDmitry Stogov <dmitry@zend.com>2018-07-05 17:55:54 +0300
commit169d4545931a43df258608c6cfb59b3e4bb92776 (patch)
tree64f46e4647fc1cb8f73562ecaae5922e5342e14d /ext/dom/php_dom.c
parent43d5a3665ddc8b871ccdcd10c4ffde408cd28d35 (diff)
downloadphp-git-169d4545931a43df258608c6cfb59b3e4bb92776.tar.gz
Use zval_ptr_dtor() imstead of zval_dtor()
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r--ext/dom/php_dom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index a9220863d2..1377c18a12 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -399,7 +399,7 @@ static int dom_property_exists(zval *object, zval *member, int check_empty, void
} else if (check_empty == 0) {
retval = (Z_TYPE(tmp) != IS_NULL);
}
- zval_dtor(&tmp);
+ zval_ptr_dtor(&tmp);
}
} else {
retval = zend_std_has_property(object, member, check_empty, cache_slot);
@@ -439,7 +439,7 @@ static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp) /* {{{ *
}
if (Z_TYPE(value) == IS_OBJECT) {
- zval_dtor(&value);
+ zval_ptr_dtor(&value);
ZVAL_NEW_STR(&value, object_str);
zend_string_addref(object_str);
}