MFB: Optimize out zend_hash_num_elements() call

This commit is contained in:
Ilia Alshanetsky 2006-12-21 01:16:36 +00:00
parent e2b3141df2
commit 5da2c7a6df

View File

@ -1863,7 +1863,7 @@ static void sdl_serialize_type(sdlTypePtr type, HashTable *tmp_encoders, HashTab
sdlTypePtr *tmp; sdlTypePtr *tmp;
tmp_elements = emalloc(sizeof(HashTable)); tmp_elements = emalloc(sizeof(HashTable));
zend_hash_init(tmp_elements, 0, NULL, NULL, 0); zend_hash_init(tmp_elements, i, NULL, NULL, 0);
zend_hash_internal_pointer_reset(type->elements); zend_hash_internal_pointer_reset(type->elements);
while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) { while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) {