From eca56e4b59fb8ccdac8ae846bd128331c0bc408c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 1 Jun 2005 14:42:50 +0000 Subject: Fixed bug #32941 (Sending structured SOAP fault kills a php) --- ext/soap/php_schema.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'ext/soap/php_schema.c') 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; } -- cgit v1.2.1