Skip to content

Commit b87e0a7

Browse files
authored
Fix SOAP API problems after upgrading 7.14 and php 8.2
Issue report: https://community.suitecrm.com/t/soap-api-problems-after-upgrading-7-14-php-8-2/90179
1 parent 54bc56c commit b87e0a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/nusoap/nusoap.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -5427,7 +5427,8 @@ public function invoke_method()
54275427
$call_arg = (string)$this->methodname; // straight assignment changes $this->methodname to lower case after call_user_func_array()
54285428
} elseif ($delim == '..') {
54295429
$this->debug('in invoke_method, calling class method using call_user_func_array()');
5430-
$call_arg = array($class, $method);
5430+
$instance = new $class(); // Fix https://community.suitecrm.com/t/soap-api-problems-after-upgrading-7-14-php-8-2/90179
5431+
$call_arg = array(&$instance, $method);
54315432
} else {
54325433
$this->debug('in invoke_method, calling instance method using call_user_func_array()');
54335434
$instance = new $class();
@@ -10199,4 +10200,4 @@ class soapclient extends nusoap_client
1019910200
class nusoapclient extends nusoap_client
1020010201
{
1020110202
}
10202-
?>
10203+
?>

0 commit comments

Comments
 (0)