summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-16 02:36:52 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-16 02:36:52 +0400
commitb1f88c9a13f363499fc05a03394aad9f2866ae32 (patch)
treec9755bc433af2064daf9e86631a8ae5a4839b4f8 /ext/soap/php_schema.c
parent51c55a1ed3f14e0f59764ebd4abe7e8a8a7d7126 (diff)
downloadphp-git-b1f88c9a13f363499fc05a03394aad9f2866ae32.tar.gz
Fixed WSDL attibute parsing
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index 4895bf7876..5ba3bd3de5 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -2165,7 +2165,7 @@ static void schema_attributegroup_fixup(sdlCtx *ctx, sdlAttributePtr attr, HashT
}
zend_hash_get_current_key_ex(tmp->attributes, &_key, NULL, 0, &tmp->attributes->nInternalPointer);
- zend_hash_add_ptr(ht, _key, &newAttr);
+ zend_hash_add_ptr(ht, _key, newAttr);
zend_hash_move_forward(tmp->attributes);
} else {
@@ -2273,7 +2273,6 @@ static void schema_type_fixup(sdlCtx *ctx, sdlTypePtr type)
ZEND_HASH_FOREACH_KEY_PTR(type->attributes, index, str_key, attr) {
if (str_key) {
schema_attribute_fixup(ctx, attr);
- zend_hash_move_forward(type->attributes);
} else {
schema_attributegroup_fixup(ctx, attr, type->attributes);
zend_hash_index_del(type->attributes, index);