Skip to content

Fix #9741 SOAP API problems after upgrading PHP. Suite 7.14 on PHP 8.2. #10289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/nusoap/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5427,7 +5427,8 @@ public function invoke_method()
$call_arg = (string)$this->methodname; // straight assignment changes $this->methodname to lower case after call_user_func_array()
} elseif ($delim == '..') {
$this->debug('in invoke_method, calling class method using call_user_func_array()');
$call_arg = array($class, $method);
$instance = new $class(); // Fix https://community.suitecrm.com/t/soap-api-problems-after-upgrading-7-14-php-8-2/90179
$call_arg = array(&$instance, $method);
} else {
$this->debug('in invoke_method, calling instance method using call_user_func_array()');
$instance = new $class();
Expand Down Expand Up @@ -10199,4 +10200,4 @@ class soapclient extends nusoap_client
class nusoapclient extends nusoap_client
{
}
?>
?>