From 0df57480b6fb574580697da26df1ac5802bc367c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 19 Sep 2018 13:54:02 +0300 Subject: [PATCH] Remove zend_hash_exists() --- ext/soap/soap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/soap/soap.c b/ext/soap/soap.c index b21273e297..12b9dd2861 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -550,9 +550,7 @@ static void php_soap_prepare_globals() } } /* Index everything by number */ - if (!zend_hash_index_exists(&defEncIndex, defaultEncoding[i].details.type)) { - zend_hash_index_update_ptr(&defEncIndex, defaultEncoding[i].details.type, (void*)enc); - } + zend_hash_index_add_ptr(&defEncIndex, defaultEncoding[i].details.type, (void*)enc); i++; } while (defaultEncoding[i].details.type != END_KNOWN_TYPES); -- 2.40.0