From: Dmitry Stogov Date: Mon, 28 Mar 2005 16:28:04 +0000 (+0000) Subject: Fixed handling of attributes' namespaces X-Git-Tag: php-5.0.1b1~664 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3f2a3aab50051a626d830e57287d1b354416f36;p=php Fixed handling of attributes' namespaces --- 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);