summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r--ext/dom/php_dom.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index 04c7e3a40e..9e174fe997 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -424,10 +424,8 @@ static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp) /* {{{ *
*is_temp = 1;
- ALLOC_HASHTABLE(debug_info);
-
std_props = zend_std_get_properties(object);
- zend_array_dup(debug_info, std_props);
+ debug_info = zend_array_dup(std_props);
if (!prop_handlers) {
return debug_info;