1--TEST--
2SoapClient::__soapCall with invalid headers
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8/* Bypass constructor */
9class ExtendedSoapClient extends SoapClient {
10    public function __construct() {}
11}
12
13$client = new ExtendedSoapClient();
14$header = new SoapHeader('namespace', 'name');
15$headers = [
16    $header,
17    'giberrish',
18];
19
20try {
21    $client->__setSoapHeaders($headers);
22} catch (Throwable $e) {
23    echo $e::class, ': ', $e->getMessage(), PHP_EOL;
24}
25
26?>
27--EXPECTF--
28Fatal error: SoapClient::__setSoapHeaders(): Invalid SOAP header in %s on line %d
29