WSDL & caching

From: Date: Mon, 07 Jul 2003 13:39:21 +0000
Subject: WSDL & caching
Groups: php.soap 
Request: Send a blank email to php-soap+get-754@lists.php.net to get a copy of this message
Hi all, SOAP 0.7.4, WSDL.php, line 696: if (!preg_match('/^(http[s]|file):\/\//',$wsdl_fname)) { should read: if (!preg_match('/^(http[s]*|file):\/\//',$wsdl_fname)) { (added asterisk after [s]). Otherwise, "http://..." addresses don't match. Also: DEFINE("WSDL_CACHE_MAX_AGE",12*60*60); DEFINE("WSDL_CACHE_USE",0); // set to zero to turn off caching As PHP constants can't be (un|re)defined one has to hack the main "WSDL.php" in order to enable caching - that's not viable in many PEAR installations. So what about allowing option parameters to the SOAP_WSDL constructor, e.g. $options['cache_max_age'] and $options['cache_use'], in order to override these settings? Bye Michele

« previous php.soap (#754) next »