Skip to content

Commit 6cf467c

Browse files
committed
Soap: Document how the current lookup functions work
1 parent f538319 commit 6cf467c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/soap/soap.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,6 +3058,8 @@ static void deserialize_parameters(xmlNodePtr params, sdlFunctionPtr function, u
30583058
}
30593059
/* }}} */
30603060

3061+
/* This function attempts to find the right function name based on the first node's name in the soap body.
3062+
* If that doesn't work it falls back to get_doc_function(). */
30613063
static sdlFunctionPtr find_function(sdlPtr sdl, xmlNodePtr func, zval* function_name) /* {{{ */
30623064
{
30633065
sdlFunctionPtr function;
@@ -4185,6 +4187,10 @@ static sdlFunctionPtr get_function(sdlPtr sdl, const char *function_name, size_t
41854187
}
41864188
/* }}} */
41874189

4190+
/* This function tries to find the function that matches the given parameters.
4191+
* If params is NULL, it will return the first function that has no parameters.
4192+
* If params is not NULL, it will return the first function that has the same
4193+
* parameters as the given XML node. */
41884194
static sdlFunctionPtr get_doc_function(sdlPtr sdl, xmlNodePtr params) /* {{{ */
41894195
{
41904196
if (sdl) {

0 commit comments

Comments
 (0)