diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-01-28 16:47:49 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-01-28 16:47:49 +0000 |
commit | 6cf3c8586e5e966feeca0fad259bf5c23b6b9a3c (patch) | |
tree | 4b418a7dc0f12322c9c57fdbb0e0cbfca6deba13 /ext/soap/php_xml.c | |
parent | 01c6257c5c8d6d0473271c006392b5d43f1214e9 (diff) | |
download | php-git-6cf3c8586e5e966feeca0fad259bf5c23b6b9a3c.tar.gz |
Error reoprting improved by prefix
New 'HTTP' fault code
Source cleanup
Diffstat (limited to 'ext/soap/php_xml.c')
-rw-r--r-- | ext/soap/php_xml.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index 368caf30a3..0962656a27 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -151,44 +151,6 @@ xmlNodePtr get_node_with_attribute_recursive_ex(xmlNodePtr node, char *name, cha return NULL; } -xmlNodePtr check_and_resolve_href(xmlNodePtr data) -{ - if (data && data->properties) { - xmlAttrPtr href = get_attribute(data->properties, "href"); - if (href) { - /* Internal href try and find node */ - if (href->children->content[0] == '#') { - xmlNodePtr ret = get_node_with_attribute_recursive(data->doc->children, NULL, "id", &href->children->content[1]); - if (!ret) { - php_error(E_ERROR,"Unresolved reference '%s'",href->children->content); - } - return ret; - } else { - /* TODO: External href....? */ - php_error(E_ERROR,"External reference '%s'",href->children->content); - } - } - /* SOAP 1.2 enc:id enc:ref */ - href = get_attribute_ex(data->properties, "ref", SOAP_1_2_ENC_NAMESPACE); - if (href) { - /* Internal href try and find node */ - if (href->children->content[0] == '#') { - xmlNodePtr ret = get_node_with_attribute_recursive_ex(data->doc->children, NULL, NULL, "id", &href->children->content[1], SOAP_1_2_ENC_NAMESPACE); - if (!ret) { - php_error(E_ERROR,"Unresolved reference '%s'",href->children->content); - } else if (ret == data) { - php_error(E_ERROR,"Violation of id and ref information items '%s'",href->children->content); - } - return ret; - } else { - /* TODO: External href....? */ - php_error(E_ERROR,"External reference '%s'",href->children->content); - } - } - } - return data; -} - int parse_namespace(const char *inval, char **value, char **namespace) { char *found = strchr(inval, ':'); |