summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-02-16 16:32:52 +0000
committerDmitry Stogov <dmitry@php.net>2004-02-16 16:32:52 +0000
commit1350643b8c1d9fded37b7db68d73566160ea802f (patch)
tree5e1693b39883620e06b3437fd24a92f3e3ca946b /ext/soap/php_sdl.c
parent25956876a7631702f4a155b28ddbcc73a67597d0 (diff)
downloadphp-git-1350643b8c1d9fded37b7db68d73566160ea802f.tar.gz
BUGFIX: incorrect restoring of negative integers from WSDL cache
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 9353c0bac5..2a74869e26 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -877,7 +877,7 @@ static sdlPtr load_wsdl(char *struri)
#define WSDL_CACHE_VERSION 01
#define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type);
-#define WSDL_CACHE_GET_INT(ret,buf) ret = ((int)(*buf)[0])+((int)(*buf)[1]<<8)+((int)(*buf)[2]<<16)+((int)(*buf)[3]<<24); *buf += 4;
+#define WSDL_CACHE_GET_INT(ret,buf) ret = ((int)(*buf)[0])|((int)(*buf)[1]<<8)|((int)(*buf)[2]<<16)|((int)(*buf)[3]<<24); *buf += 4;
#define WSDL_CACHE_GET_1(ret,type,buf) ret = (type)(**buf); (*buf)++;
#define WSDL_CACHE_GET_N(ret,n,buf) memcpy(ret,*buf,n); *buf += n;
#define WSDL_CACHE_SKIP(n,buf) *buf += n;