diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-01-12 08:48:00 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-01-12 08:48:00 +0000 |
commit | 2b0ed796072c209070b687fa42a0de626774acf9 (patch) | |
tree | 5b9786de61e160fad3043b91afc49c3ff5228f47 | |
parent | 92eb129bd9566e45702b74d4372a13baffa92c46 (diff) | |
download | php-git-2b0ed796072c209070b687fa42a0de626774acf9.tar.gz |
WSDL support: use of type before declaration (see interop round2 base OpenLink echoStructArray)
-rw-r--r-- | ext/soap/php_schema.c | 3 | ||||
-rw-r--r-- | ext/soap/php_sdl.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c index 4659039d27..1b0756e4d8 100644 --- a/ext/soap/php_schema.c +++ b/ext/soap/php_schema.c @@ -358,8 +358,9 @@ static int schema_restriction_simpleContent(sdlPtr *sdl, xmlAttrPtr tsn, xmlNode xmlAttrPtr base; base = get_attribute(restType->properties, "base"); - if (base != NULL) + if (base != NULL) { cur_type->encode = get_encoder_from_prefix((*sdl), restType, base->children->content); + } content = get_node(restType->children, "simpleType"); if (content != NULL) { diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index d7ac2d8562..cb927224e9 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -91,7 +91,7 @@ encodePtr create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const char *ns, const sdl->encoders = malloc(sizeof(HashTable)); zend_hash_init(sdl->encoders, 0, NULL, delete_encoder, 1); } - zend_hash_add(sdl->encoders, nscat.c, nscat.len + 1, &enc, sizeof(encodePtr), NULL); + zend_hash_update(sdl->encoders, nscat.c, nscat.len + 1, &enc, sizeof(encodePtr), NULL); smart_str_free(&nscat); return enc; } |