--TEST--
Bug #71996: Using references in arrays doesn't work like expected
--EXTENSIONS--
soap
--FILE--
'', 'uri' => 'http://example.org']) extends SoapClient {
public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string {
echo $request, "\n";
return '';
}
};
$ref = array("foo");
$data = array(&$ref);
$client->foo($data);
$ref = array("def" => "foo");
$data = array("abc" => &$ref);
$client->foo($data);
?>
--EXPECT--
- foo
- abc
- deffoo