dmitry          Mon Feb 16 11:32:53 2004 EDT

  Modified files:              
    /php-src/ext/soap   php_sdl.c 
  Log:
  BUGFIX: incorrect restoring of negative integers from WSDL cache
  
  
http://cvs.php.net/diff.php/php-src/ext/soap/php_sdl.c?r1=1.59&r2=1.60&ty=u
Index: php-src/ext/soap/php_sdl.c
diff -u php-src/ext/soap/php_sdl.c:1.59 php-src/ext/soap/php_sdl.c:1.60
--- php-src/ext/soap/php_sdl.c:1.59     Fri Feb 13 10:19:09 2004
+++ php-src/ext/soap/php_sdl.c  Mon Feb 16 11:32:52 2004
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_sdl.c,v 1.59 2004/02/13 15:19:09 dmitry Exp $ */
+/* $Id: php_sdl.c,v 1.60 2004/02/16 16:32:52 dmitry Exp $ */
 
 #include "php_soap.h"
 #include "libxml/uri.h"
@@ -877,7 +877,7 @@
 #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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to