1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00

Fixed wrong SOAP headers encoding/decoding.

This commit is contained in:
Dmitry Stogov
2005-03-28 15:21:50 +00:00
parent d8824f2d5c
commit 8dff99116d

View 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;