From: Dmitry Stogov Date: Mon, 31 Jan 2005 15:08:24 +0000 (+0000) Subject: Fixed SIGSEGV when restoring WSDL without functions from cache X-Git-Tag: RELEASE_0_2~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fea1b5b3a0b8c1828266608aa2c184ff1487283f;p=php Fixed SIGSEGV when restoring WSDL without functions from cache --- diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 9051100105..9b526110e8 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -1506,8 +1506,8 @@ static sdlPtr get_sdl_from_cache(const char *fn, const char *uri, time_t t) /* deserialize functions */ WSDL_CACHE_GET_INT(num_func, &in); + zend_hash_init(&sdl->functions, num_func, NULL, delete_function, 0); if (num_func > 0) { - zend_hash_init(&sdl->functions, num_func, NULL, delete_function, 0); functions = emalloc(num_func*sizeof(sdlFunctionPtr)); for (i = 0; i < num_func; i++) { int binding_num, num_faults;