diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-03-28 18:06:29 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-03-28 18:06:29 +0000 |
commit | caeeebebc1a2c7654a9efd35678be34ce7f9a51e (patch) | |
tree | 6a5c91461d19bb7205ef1e5303807a4bf7615a00 /ext/soap/php_encoding.c | |
parent | d78d3ac21031f523c3968585fe77596824ae3ad2 (diff) | |
download | php-git-caeeebebc1a2c7654a9efd35678be34ce7f9a51e.tar.gz |
Fixed handling of attributes' namespaces
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r-- | ext/soap/php_encoding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index cb17bebbc4..e9efb553cd 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -1479,8 +1479,11 @@ static xmlNodePtr to_xml_object(encodeTypePtr type, zval *data, int style, xmlNo if ((*attr)->fixed && strcmp((*attr)->fixed,dummy->children->content) != 0) { 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) { +/* if ((*attr)->namens && - (type->ns == NULL || strcmp((*attr)->namens, type->ns) == 0)) { + (type->ns == NULL || strcmp((*attr)->namens, type->ns))) { +*/ xmlNsPtr nsp = encode_add_ns(xmlParam, (*attr)->namens); xmlSetNsProp(xmlParam, nsp, (*attr)->name, dummy->children->content); |