From a3f2a3aab50051a626d830e57287d1b354416f36 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 28 Mar 2005 16:28:04 +0000 Subject: [PATCH] Fixed handling of attributes' namespaces --- ext/soap/php_encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index eda32813e3..cb17bebbc4 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -1480,7 +1480,7 @@ static xmlNodePtr to_xml_object(encodeTypePtr type, zval *data, int style, xmlNo soap_error3(E_ERROR, "Encoding: Attribute '%s' has fixed value '%s' (value '%s' is not allowed)", (*attr)->name, (*attr)->fixed, dummy->children->content); } if ((*attr)->namens && - (type->ns == NULL || strcmp((*attr)->namens, type->ns))) { + (type->ns == NULL || strcmp((*attr)->namens, type->ns) == 0)) { xmlNsPtr nsp = encode_add_ns(xmlParam, (*attr)->namens); xmlSetNsProp(xmlParam, nsp, (*attr)->name, dummy->children->content); -- 2.50.1