### Description The following code: ```php <?php $tmp = &$utf8_string; $utf8_string[] = $tmp; $fusion = $utf8_string; $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); $client->__soapCall("echoStructArray", array(array($struct1,$fusion)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/")); ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04
Activity
ndossche commentedon Oct 9, 2024
It's missing the typical array/object recursion protection; and even when fixing that it probably can fail with e.g. very deeply nested objects.
[-]Segmentation fault in ext/soap/php_encoding.c:382[/-][+]Recursive array segfaults soap encoding[/+]Fix phpGH-16318: Recursive array segfaults soap encoding
Fix GH-16318: Recursive array segfaults soap encoding
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'