diff --git a/reference/soap/soapserver/addfunction.xml b/reference/soap/soapserver/addfunction.xml index dfc5516de34b..048a7f2d20cb 100644 --- a/reference/soap/soapserver/addfunction.xml +++ b/reference/soap/soapserver/addfunction.xml @@ -32,7 +32,13 @@ To export several functions, pass an array of function names. - To export all the functions, pass a special constant SOAP_FUNCTIONS_ALL. + To export all the functions, pass an array of function names. + + + As of PHP 8.4.0, passing an int value (including + SOAP_FUNCTIONS_ALL) is deprecated. + Use get_defined_functions to retrieve all functions + and pass them as an array instead. @@ -54,6 +60,29 @@ &return.void; + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + Passing an int to + SoapServer::addFunction, + including SOAP_FUNCTIONS_ALL, has been deprecated. + + + + + + &reftitle.examples; @@ -78,7 +107,8 @@ function echoTwoStrings($inputString1, $inputString2) } $server->addFunction(array("echoString", "echoTwoStrings")); -$server->addFunction(SOAP_FUNCTIONS_ALL); +$functions = array_merge(...get_defined_functions()); +$server->addFunction($functions); ?> ]]>