From e10e151e9b92313a7085272c85bebf6c82017fce Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 13 Feb 2015 22:20:39 +0300 Subject: Merged zend_array and HashTable into the single data structure. Now each HashTable is also zend_array, so it's refcounted and may be a subject for Copy on Write zend_array_dup() was changed to allocate and return HashTable, instead of taking preallocated HashTable as argument. --- ext/dom/php_dom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/dom/php_dom.c') 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; -- cgit v1.2.1