diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-01-31 15:08:24 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-01-31 15:08:24 +0000 |
commit | fea1b5b3a0b8c1828266608aa2c184ff1487283f (patch) | |
tree | 50c960e15c1822a6664bddcace8df24474ed5190 /ext/soap/php_sdl.c | |
parent | 5e8cd3a2da6358798395250dc888777b275469d3 (diff) | |
download | php-git-fea1b5b3a0b8c1828266608aa2c184ff1487283f.tar.gz |
Fixed SIGSEGV when restoring WSDL without functions from cache
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |