You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-16256 (Assertion failure in ext/soap/php_encoding.c:460)
3
+
--EXTENSIONS--
4
+
soap
5
+
--FILE--
6
+
<?php
7
+
$classmap = [
8
+
"bogus",
9
+
];
10
+
$wsdl = __DIR__."/ext/soap/tests/bug41004.wsdl";
11
+
try {
12
+
newSoapClient($wsdl, ["classmap" => $classmap]);
13
+
} catch (Throwable$e) {
14
+
echo$e->getMessage(), "\n";
15
+
}
16
+
try {
17
+
newSoapServer($wsdl, ["classmap" => $classmap]);
18
+
} catch (Throwable$e) {
19
+
echo$e->getMessage(), "\n";
20
+
}
21
+
?>
22
+
--EXPECT--
23
+
SoapClient::__construct(): 'classmap' option must be an associative array
24
+
<?xml version="1.0" encoding="UTF-8"?>
25
+
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>SoapServer::__construct(): 'classmap' option must be an associative array</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
0 commit comments