summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-04-19 10:48:54 +0000
committerDmitry Stogov <dmitry@php.net>2006-04-19 10:48:54 +0000
commit68906dbe62b438e4d96d9b602ac35861dcb88637 (patch)
tree96473e6b5bfb76e2af113f98a2f3a005eff017bf /ext/soap/php_sdl.h
parent9ea8d8dbf61e87291f028ddec65a03d991ba6a22 (diff)
downloadphp-git-68906dbe62b438e4d96d9b602ac35861dcb88637.tar.gz
Cleaned up Andrei's patch for caching WSDL in process memory, added TTL and LIMIT for memory cache.
Memory cache is disblead by fefault because it is experemental and isn't tested enough. It can be enabled whit configuartion directive "soap.wsdl_cache = WSDL_CACHE_MEMORY" or "soap.wsdl_cache = WSDL_CACHE_BOTH" or derectly in SoapClent/SoapServer constructor: $ws = new SoapClient($wsdl, array("cache_wsdl"=>WSDL_CACHE_BOTH)) Disk and memory caches use the same TTL value - "soap.wsdl_cache_ttl". Configuration directive "soap.wsdl_cache_limit" restricts the number of cached wsdl files in memory. Adding new files into full memory cache will delete oldest files from it. Note that, each PHP process or thread uses it's own memory cache.
Diffstat (limited to 'ext/soap/php_sdl.h')
-rw-r--r--ext/soap/php_sdl.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/soap/php_sdl.h b/ext/soap/php_sdl.h
index 31a8a8a073..7ac46e86f3 100644
--- a/ext/soap/php_sdl.h
+++ b/ext/soap/php_sdl.h
@@ -252,9 +252,7 @@ struct _sdlAttribute {
};
-int php_soap_psdl_list_entry(void);
-
-sdlPtr get_sdl(zval *this_ptr, char *uri, zend_bool persistent TSRMLS_DC);
+sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC);
encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr data, const char *type);
encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type);
@@ -265,6 +263,5 @@ sdlBindingPtr get_binding_from_name(sdlPtr sdl, char *name, char *ns);
void delete_sdl(void *handle);
void delete_sdl_impl(void *handle);
-ZEND_RSRC_DTOR_FUNC(delete_psdl);
#endif