summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-11-30 23:51:24 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-11-30 23:51:24 +0000
commitc42d25dc33e6680426a48da7e2b41410f652e8e0 (patch)
tree02159041a6a93d2a76408e64102ef9cb870f8435 /ext/soap/php_sdl.c
parentb7dc2a51add30c359b6dac8c24a43e04631aba4e (diff)
downloadphp-git-c42d25dc33e6680426a48da7e2b41410f652e8e0.tar.gz
Small hash table optimization
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 53c9a1a5a0..d601883b61 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -1863,7 +1863,7 @@ static void sdl_serialize_type(sdlTypePtr type, HashTable *tmp_encoders, HashTab
sdlTypePtr *tmp;
tmp_elements = emalloc(sizeof(HashTable));
- zend_hash_init(tmp_elements, 0, NULL, NULL, 0);
+ zend_hash_init(tmp_elements, zend_hash_num_elements(type->elements), NULL, NULL, 0);
zend_hash_internal_pointer_reset(type->elements);
while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) {