mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
MFB: Optimize out zend_hash_num_elements() call
This commit is contained in:
parent
e2b3141df2
commit
5da2c7a6df
@ -1862,8 +1862,8 @@ static void sdl_serialize_type(sdlTypePtr type, HashTable *tmp_encoders, HashTab
|
||||
if (i > 0) {
|
||||
sdlTypePtr *tmp;
|
||||
|
||||
tmp_elements = emalloc(sizeof(HashTable));
|
||||
zend_hash_init(tmp_elements, 0, NULL, NULL, 0);
|
||||
tmp_elements = emalloc(sizeof(HashTable));
|
||||
zend_hash_init(tmp_elements, i, NULL, NULL, 0);
|
||||
|
||||
zend_hash_internal_pointer_reset(type->elements);
|
||||
while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) {
|
||||
|
Loading…
Reference in New Issue
Block a user