From 9eb89dddb10b7d5b7aa97c04ffc9804cedb8ce04 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 23 May 2014 20:37:53 +0400 Subject: Use optimized zend_array_dup() function. convert zend_hash_num_elements() and zend_hash_next_free_element() into macros. --- ext/dom/php_dom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/dom') diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 77bf91920f..7120a7ee08 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -425,10 +425,9 @@ static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp TSRMLS_DC *is_temp = 1; ALLOC_HASHTABLE(debug_info); - ZEND_INIT_SYMTABLE_EX(debug_info, 32, 0); std_props = zend_std_get_properties(object TSRMLS_CC); - zend_hash_copy(debug_info, std_props, (copy_ctor_func_t) zval_add_ref); + zend_array_dup(debug_info, std_props); if (!prop_handlers) { return debug_info; -- cgit v1.2.1