From: Dmitry Stogov Date: Mon, 31 Jan 2005 15:08:36 +0000 (+0000) Subject: Fixed SIGSEGV when restoring WSDL without functions from cache X-Git-Tag: php-5.0.4RC1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4835d49c863a3b4d8514eec5728389fde825704f;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 3d21103ebc..be10c0c3af 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -1507,8 +1507,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;