From: Dmitry Stogov Date: Fri, 29 Apr 2005 05:38:31 +0000 (+0000) Subject: Fixed WSDL cache bug X-Git-Tag: php-5.0.5RC1~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8aa7f7e3f9ad2d0c3e948e811336f3d212cf1a16;p=php Fixed WSDL cache bug --- diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index fa736a4192..ca71ce7ced 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -1065,7 +1065,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC) return ctx.sdl; } -#define WSDL_CACHE_VERSION 0x0d +#define WSDL_CACHE_VERSION 0x0e #define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type); #define WSDL_CACHE_GET_INT(ret,buf) ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char)(*buf)[2]<<16)|((int)(*buf)[3]<<24); *buf += 4; @@ -1352,9 +1352,9 @@ static void sdl_deserialize_soap_body(sdlSoapBindingFunctionBodyPtr body, encode tmp2->name = sdl_deserialize_string(in); tmp2->ns = sdl_deserialize_string(in); WSDL_CACHE_GET_INT(n, in); - tmp->encode = encoders[n]; + tmp2->encode = encoders[n]; WSDL_CACHE_GET_INT(n, in); - tmp->element = types[n]; + tmp2->element = types[n]; --j; } }