From 7edf9bc2c346ecbc6b82610d30f29431085ce0b9 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 17 Feb 2004 15:10:16 +0000 Subject: support for XMLSchema nillable attribute --- ext/soap/php_sdl.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'ext/soap/php_sdl.c') diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index e9d7246f33..3993758f15 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -877,7 +877,7 @@ static sdlPtr load_wsdl(char *struri) return ctx.sdl; } -#define WSDL_CACHE_VERSION 02 +#define WSDL_CACHE_VERSION 03 #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; @@ -992,14 +992,12 @@ static sdlContentModelPtr sdl_deserialize_model(sdlTypePtr *types, sdlTypePtr *e case XSD_CONTENT_ALL: case XSD_CONTENT_CHOICE: WSDL_CACHE_GET_INT(i, in); - if (i > 0) { - model->u.content = emalloc(sizeof(HashTable)); - zend_hash_init(model->u.content, i, NULL, delete_model, 0); - while (i > 0) { - sdlContentModelPtr x = sdl_deserialize_model(types, elements, in); - zend_hash_next_index_insert(model->u.content,&x,sizeof(sdlContentModelPtr),NULL); - i--; - } + model->u.content = emalloc(sizeof(HashTable)); + zend_hash_init(model->u.content, i, NULL, delete_model, 0); + while (i > 0) { + sdlContentModelPtr x = sdl_deserialize_model(types, elements, in); + zend_hash_next_index_insert(model->u.content,&x,sizeof(sdlContentModelPtr),NULL); + i--; } break; case XSD_CONTENT_GROUP_REF: -- cgit v1.2.1