diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-06-01 14:42:50 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-06-01 14:42:50 +0000 |
| commit | eca56e4b59fb8ccdac8ae846bd128331c0bc408c (patch) | |
| tree | 4839c8456f54ef66f3af58118634512d12e640b4 /ext/soap/php_schema.c | |
| parent | 05affa4c864672beed1e3e9f1b1f68b0c0bf372c (diff) | |
| download | php-git-eca56e4b59fb8ccdac8ae846bd128331c0bc408c.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.c | 12 |
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; } |
