summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-06-01 14:43:13 +0000
committerDmitry Stogov <dmitry@php.net>2005-06-01 14:43:13 +0000
commitb41a7ad18a5c2de41bac19a8b952574f084a865d (patch)
tree55577a5c6b63e74f1e50496a3eea9b1b37e6938e /ext/soap/php_schema.c
parent9383e1b8582ae678dd8769d79c0fb4122d0f5e43 (diff)
downloadphp-git-b41a7ad18a5c2de41bac19a8b952574f084a865d.tar.gz
Fixed bug #32941 (Sending structured SOAP fault kills a php)
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index b292a60862..10119a45de 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -88,20 +88,10 @@ static encodePtr create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const char *ns,
static encodePtr get_create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const char *ns, const char *type)
{
- encodePtr enc = NULL;
- smart_str nscat = {0};
-
- smart_str_appends(&nscat, ns);
- smart_str_appendc(&nscat, ':');
- smart_str_appends(&nscat, type);
- smart_str_0(&nscat);
-
- enc = get_encoder_ex(sdl, nscat.c, nscat.len);
+ encodePtr enc = get_encoder(sdl, ns, type);
if (enc == NULL) {
enc = create_encoder(sdl, cur_type, ns, type);
}
-
- smart_str_free(&nscat);
return enc;
}