summaryrefslogtreecommitdiff
path: root/ext/dom
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-23 20:37:53 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-23 20:37:53 +0400
commit9eb89dddb10b7d5b7aa97c04ffc9804cedb8ce04 (patch)
tree9310ef937b341472e518649825072bc58e999238 /ext/dom
parent8fbf4027e2c5c5138c08998c5076b5b579987163 (diff)
downloadphp-git-9eb89dddb10b7d5b7aa97c04ffc9804cedb8ce04.tar.gz
Use optimized zend_array_dup() function. convert zend_hash_num_elements() and zend_hash_next_free_element() into macros.
Diffstat (limited to 'ext/dom')
-rw-r--r--ext/dom/php_dom.c3
1 files changed, 1 insertions, 2 deletions
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;