From 3b27cd22b62a126a13d1904ac744d677529f04d7 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 14 Jun 2007 07:09:31 +0000 Subject: Fixed bug #41566 (SOAP Server not properly generating href attributes) --- ext/soap/php_encoding.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/soap/php_encoding.c') diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 6a2c71d583..14b05e0210 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -297,6 +297,10 @@ static zend_bool soap_check_zval_ref(zval *data, xmlNodePtr node TSRMLS_DC) { } if (attr) { id = (char*)attr->children->content; + smart_str_appendc(&prefix, '#'); + smart_str_appends(&prefix, id); + smart_str_0(&prefix); + id = prefix.c; } else { SOAP_GLOBAL(cur_uniq_ref)++; smart_str_appendl(&prefix, "#ref", 4); @@ -310,6 +314,10 @@ static zend_bool soap_check_zval_ref(zval *data, xmlNodePtr node TSRMLS_DC) { attr = get_attribute_ex(attr, "id", SOAP_1_2_ENC_NAMESPACE); if (attr) { id = (char*)attr->children->content; + smart_str_appendc(&prefix, '#'); + smart_str_appends(&prefix, id); + smart_str_0(&prefix); + id = prefix.c; } else { SOAP_GLOBAL(cur_uniq_ref)++; smart_str_appendl(&prefix, "#ref", 4); -- cgit v1.2.1