mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Source cleanup
This commit is contained in:
parent
2238e4b9f0
commit
43f0131ea1
2 changed files with 6 additions and 6 deletions
|
@ -386,7 +386,7 @@ int get_http_soap_response(zval *this_ptr, char **buffer, int *buffer_len TSRMLS
|
||||||
|
|
||||||
if (sempos != NULL) {
|
if (sempos != NULL) {
|
||||||
cookie_len = sempos-(eqpos+1);
|
cookie_len = sempos-(eqpos+1);
|
||||||
} else {
|
} else {
|
||||||
cookie_len = strlen(cookie)-(eqpos-cookie)-1;
|
cookie_len = strlen(cookie)-(eqpos-cookie)-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -160,12 +160,12 @@ xmlNodePtr check_and_resolve_href(xmlNodePtr data)
|
||||||
if (href->children->content[0] == '#') {
|
if (href->children->content[0] == '#') {
|
||||||
xmlNodePtr ret = get_node_with_attribute_recursive(data->doc->children, NULL, "id", &href->children->content[1]);
|
xmlNodePtr ret = get_node_with_attribute_recursive(data->doc->children, NULL, "id", &href->children->content[1]);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
php_error(E_ERROR,"Unresolved reference '%s'",href->children->content);
|
php_error(E_ERROR,"Unresolved reference '%s'",href->children->content);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
/* TODO: External href....? */
|
/* TODO: External href....? */
|
||||||
php_error(E_ERROR,"External reference '%s'",href->children->content);
|
php_error(E_ERROR,"External reference '%s'",href->children->content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* SOAP 1.2 enc:id enc:ref */
|
/* SOAP 1.2 enc:id enc:ref */
|
||||||
|
@ -175,14 +175,14 @@ xmlNodePtr check_and_resolve_href(xmlNodePtr data)
|
||||||
if (href->children->content[0] == '#') {
|
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);
|
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) {
|
if (!ret) {
|
||||||
php_error(E_ERROR,"Unresolved reference '%s'",href->children->content);
|
php_error(E_ERROR,"Unresolved reference '%s'",href->children->content);
|
||||||
} else if (ret == data) {
|
} else if (ret == data) {
|
||||||
php_error(E_ERROR,"Violation of id and ref information items '%s'",href->children->content);
|
php_error(E_ERROR,"Violation of id and ref information items '%s'",href->children->content);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
/* TODO: External href....? */
|
/* TODO: External href....? */
|
||||||
php_error(E_ERROR,"External reference '%s'",href->children->content);
|
php_error(E_ERROR,"External reference '%s'",href->children->content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue