diff options
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 05df5e7e0c..440c4a7448 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -3360,18 +3360,12 @@ cache_in_memory: p.time = t; p.sdl = psdl; - if (NULL != zend_hash_str_update_mem(SOAP_GLOBAL(mem_cache), uri, - uri_len, &p, sizeof(sdl_cache_bucket))) { - /* remove non-persitent sdl structure */ - delete_sdl_impl(sdl); - /* and replace it with persistent one */ - sdl = psdl; - } else { - php_error_docref(NULL, E_WARNING, "Failed to register persistent entry"); - /* clean up persistent sdl */ - delete_psdl_int(&p); - /* keep non-persistent sdl and return it */ - } + zend_hash_str_update_mem(SOAP_GLOBAL(mem_cache), uri, + uri_len, &p, sizeof(sdl_cache_bucket)); + /* remove non-persitent sdl structure */ + delete_sdl_impl(sdl); + /* and replace it with persistent one */ + sdl = psdl; } } |