diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-03-28 15:21:50 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-03-28 15:21:50 +0000 |
commit | 8dff99116d6e59cfa66cac9d88bbd7ac148cdbee (patch) | |
tree | a5bb588937ee1f8442ab46c5d3046c58fe301fab /ext/soap | |
parent | d8824f2d5c20d2ac52c10b0fd5a6e1c6e0d210e1 (diff) | |
download | php-git-8dff99116d6e59cfa66cac9d88bbd7ac148cdbee.tar.gz |
Fixed wrong SOAP headers encoding/decoding.
Diffstat (limited to 'ext/soap')
-rw-r--r-- | ext/soap/php_sdl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 731a3be8b3..70dd4705a1 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -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; |