RE: [SOAP] WSDL & caching
| From: | LIMBOURG Arnaud | Date: | Mon, 07 Jul 2003 14:12:21 +0000 |
| Subject: | RE: [SOAP] WSDL & caching | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-755@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.
/^(https?|file):\/\//
is a bit cleaner :)
I'll commit that.
> 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?
I'll try to come up with something.
Arnaud.