]> granicus.if.org Git - php/commitdiff
Fixed wrong SOAP headers encoding/decoding.
authorDmitry Stogov <dmitry@php.net>
Mon, 28 Mar 2005 15:21:50 +0000 (15:21 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 28 Mar 2005 15:21:50 +0000 (15:21 +0000)
ext/soap/php_sdl.c

index 731a3be8b338f6aa0c4c21752f7f83c1bc6c6f4a..70dd4705a1857a956b29bf6983f1d204e8917600 100644 (file)
@@ -423,6 +423,10 @@ static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xml
                                        h->ns = estrdup(h->element->namens);
                                }
                        }
+                       if (h->element->name) {
+                               efree(h->name);
+                               h->name = estrdup(h->element->name);
+                       }
                }
        }
        if (!fault) {
@@ -1061,7 +1065,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC)
        return ctx.sdl;
 }
 
-#define WSDL_CACHE_VERSION 0x0b
+#define WSDL_CACHE_VERSION 0x0c
 
 #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;