]> granicus.if.org Git - php/commitdiff
Fixed WSDL cache bug
authorDmitry Stogov <dmitry@php.net>
Fri, 29 Apr 2005 05:38:54 +0000 (05:38 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 29 Apr 2005 05:38:54 +0000 (05:38 +0000)
ext/soap/php_sdl.c

index fa736a419250bf59245db3b2301177a8ceace63b..ca71ce7ced16e4252e1d0ea004bf627dd2db73a0 100644 (file)
@@ -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;
                                }
                        }