cvs: php-src /ext/soap php_sdl.c

From: Date: Mon, 28 Mar 2005 15:21:51 +0000
Subject: cvs: php-src /ext/soap php_sdl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31135@lists.php.net to get a copy of this message
dmitry Mon Mar 28 10:21:51 2005 EDT Modified files: /php-src/ext/soap php_sdl.c Log: Fixed wrong SOAP headers encoding/decoding. http://cvs.php.net/diff.php/php-src/ext/soap/php_sdl.c?r1=1.80&r2=1.81&ty=u Index: php-src/ext/soap/php_sdl.c diff -u php-src/ext/soap/php_sdl.c:1.80 php-src/ext/soap/php_sdl.c:1.81 --- php-src/ext/soap/php_sdl.c:1.80 Mon Mar 21 10:52:50 2005 +++ php-src/ext/soap/php_sdl.c Mon Mar 28 10:21:50 2005 @@ -17,7 +17,7 @@ | Dmitry Stogov <dmitry@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_sdl.c,v 1.80 2005/03/21 15:52:50 dmitry Exp $ */ +/* $Id: php_sdl.c,v 1.81 2005/03/28 15:21:50 dmitry Exp $ */ #include "php_soap.h" #include "ext/libxml/php_libxml.h" @@ -423,6 +423,10 @@ 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 @@ 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;

« previous php.cvs (#31135) next »