Closed JustBeYou closed 2 years ago
This may be a bug of soap extension. it will generate a recursive infinite loop Try to disable exception capture of soap.
function soap()
{
$client = new SoapClient(null, array(
'location' => "http://localhost:8089/server.php",
'uri' => "http://localhost:8089/server.php",
'trace' => 1,
'exceptions' => false,
));
echo $return = $client->__soapCall("helloWorld", array("world"));
}
I am trying to use a SoapClient inside Swoole Coroutines. Sample script below, you will need a SOAP server to test it against. If you throw an exception while using the client inside a coroutine, php will crash with SIGSEGV.
A successful RPC and a thrown exception.
A segmentation fault.
php --ri swoole
)?4.10.0 installed using pecl
uname -a
&php -v
&gcc -v
) ?5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )